how u used functions in javascript code example Example: function js function myFunc(param) { return param } console.log(myFunc("Hello World"))