Answers for "convert string to code javascript"

1

string to code javascript

var theInstructions = "alert('Hello World'); var x = 100";

var F=new Function (theInstructions);

return(F());
Posted by: Guest on May-19-2021
0

string to code javascript

function ExecuteJavascriptString()
{
    var s = "alert('hello')";
    // how do I get a browser to alert('hello')?
}
Posted by: Guest on May-19-2021

Code answers related to "convert string to code javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language