a js function code example
Example 1: how to use function in javascript
/* Declare function */
function myFunc(param) {
// Statements
}
Example 2: function js
function myFunc(param) {
return param
}
console.log(myFunc("Hello World"))
/* Declare function */
function myFunc(param) {
// Statements
}
function myFunc(param) {
return param
}
console.log(myFunc("Hello World"))