@ayaanh22/

JS function 1

JavaScript

No description

fork
loading
main.js
1
2
3
4
5
function hello(){ // function keyword and the name of the function
	console.log("hello!"); // code block
}

 // calling the function. It triggers the function
Native Browser JavaScript