Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript call

function myFunc(p1, p2, pN)
{
     // here "this" will equal "myThis"
}
let myThis = {};

// call myFunc using myThis as context.
// pass params to function arguments.
myFunc.call(myThis, "param1", "param2", "paramN");
 
PREVIOUS NEXT
Tagged: #javascript #call
ADD COMMENT
Topic
Name
8+9 =