Realated Questions
Which one of the following options is the correct output for the given code of JavaScript?
const pow = new Function("num1","num2","return Math.pow(num1,num2)"); console.log(pow(2,3));
Which one of the following is the possibly correct output for the given JavaScript code?
function fun(length) { const a=5; for(let i=0;i<length;i++) { console.log(a); } } fun(2);
In JavaScript, what will be used for calling the function definition expression: