call js on a code example
Example 1: javscript call
myFunc.call(thisArg, ...args)
Example 2: javascript call
function myFunc(p1, p2, pN)
{
// here "this" equals "myThis"
}
let myThis = {};
// call myFunc using myThis as context.
// pass params to function arguments.
myFunc.call(myThis, "param1", "param2", "paramN");