can you call javascript functions and methods in gscript code example
Example 1: how to use function in javascript
/* Declare function */
function myFunc(param) {
// Statements
}
Example 2: how do i call a js method?
<button onclick="sayHello()">say hello</button> <script> 'use strict'; //force the context to be undefined function sayHello() { console.log(this); console.log(arguments); console.log('hello'); } </script>