function to set something in javascript code example
Example: function js
function myFunc(param) {
return param
}
console.log(myFunc("Hello World"))
function myFunc(param) {
return param
}
console.log(myFunc("Hello World"))