What will be the output of the code below?
var Y = 1;
if (function F(){})
{
y += Typeof F;</span>
}
console.log(y);
Answer Posted / hrpatelsoft@gmail.com
The output would be 1undefined.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of local variables?
How do you declare a variable in javascript?
How can you create an Array in JavaScript?
What does polyfill mean?
What are the pop-up boxes available in javascript?
How do you declare javascript?
How to hide javascript code from old browsers that dont run it?
What is missing in my code? function numberTally(numList) { var evenTotal = 0; var oddTotal = 0; for (var i = 0; i <= numList.length; i++) { if i % 2 { // i is odd oddTotal += numList[i]; // or oddTotal = oddTotal + numList[i]; } else { // i is even evenTotal + numList[i]; } } alert(oddTotal); return evenTotal; }
What is the difference between innerHTML and innerText?
What is the difference between local storage & session storage?
How about 3+5+"8"?
Which built-in method returns the string representation of the number’s value?
What is namespacing in javascript and how is it used?
What is the difference between test () and exec () methods?
What does the term sticky session mean in a web-farm scenario?