- 2020-03-30 02:37:35
Here is the basic use of new Function:
//The last argument is the body of the function, of type string. //The preceding arguments are the parameters (name)& NBSP; of the function to be constructed; var myFunction = new Function('users', 'salary', 'return users * salary');
Very simple, right?