Direction: Choose the correct option
Q1.
What will be printed by the following code?
var a = 5;
function demo(){
var a = 10;
}
demo();
console.log(a);
Direction: Choose the correct option
Q2.
What is the output of the following JavaScript code?
console.log(typeof undefined);
Direction: Choose the correct option
Q3.
Which keyword is used to declare a block-scoped variable?
Direction: Choose the correct option
Q4.
What will be the output of the following JavaScript code?
let x = 10;
let y = "10";
console.log(x === y);
Direction: Choose the correct option
Q5.
Which loop is best suited for iterating over arrays?
