View More Related Question
1) Consider the following code snippet
function hypotenuse(a, b)
return Math.sqrt(square(a) + square(b));
What does the above code result?
2) Consider the following code snippet :
var tensquared = (function(x)
Will the above code work ?
3) Consider the following code snippet
for(var p in o)
console.log(p + ": " + o[p] + "\n");
What will the above code snippet result ?
4) Which of the following is the correct code for invoking a function without this keyword at all, and also too determine whether the strict mode is in effect?