Which of the following is NOT a valid data type in JavaScript?
1 Crore+ students have signed up on EduRev. Have you? Download the App |
How do you comment a single line of code in JavaScript?
Which of the following is an example of a JavaScript framework?
What will be the output of the following code snippet?
console.log(2 + "2");
What will be the output of the following code snippet?
console.log("2" - 1);
What will be the output of the following code snippet?
var x = 10;
function foo() {
console.log(x);
var x = 20;
}
foo();
What will be the output of the following code snippet?
for (let i = 0; i < 3; i++) {
setTimeout(function() {
console.log(i);
}, 1000);
}
What will be the output of the following code snippet?
console.log(typeof NaN === "number");
What will be the output of the following code snippet?
let x = 5;
(function() {
console.log(x);
let x = 10;
})();
What will be the output of the following code snippet?
let x = 1;
function foo() {
console.log(x);
let x = 2;
}
foo();
What will be the output of the following code snippet?
var x = 10;
function foo() {
console.log(x);
if (false) {
var x = 20;
}
}
foo();
What will be the output of the following code snippet?
let x = 10;
{
console.log(x);
let x = 20;
}
What will be the output of the following code snippet?
let x = 1;
{
let x = 2;
{
console.log(x);
let x = 3;
}
}
51 videos|28 docs|12 tests
|
51 videos|28 docs|12 tests
|