What is the output of the following code?
let func = "return x + y;"; let x = 3; let y = 4; let newFun = new Function("x","y",func); let result = newFun(x,y); console.log(result);
Click to view the answer
7