Javascript Function Definition Function Object Create

Description

Javascript Function Definition Function Object Create



// Declaring a function using the Function class constructor
let writeln = new Function("message", "if (message) console.log(message);");
writeln("Hello world!");    // "Hello World!"



PreviousNext

Related