Which of the following is true about JavaScript variables?
What is the purpose of the "typeof" operator in JavaScript?
1 Crore+ students have signed up on EduRev. Have you? Download the App |
Which of the following is an example of a valid JavaScript variable name?
What is the result of the following expression: "5" + 2?
Which of the following is the correct way to declare a constant variable in JavaScript?
What is the output of the following code snippet?
var x = 10;
var y = 5;
var z = x + y;
console.log(z);
What will be logged to the console by the following code snippet?
var name = "John";
var greeting = "Hello, " + name + "!";
console.log(greeting);
What is the output of the following code snippet?
var x = 5;
var y = "10";
var z = x + y;
console.log(z);
What is the result of the following expression: "10" - 5?
What will be the value of "x" after the following code snippet is executed?
var x = 5;
x += 3;
x *= 2;
console.log(x);
What will be the output of the following code snippet?
var x = 10;
var y = 5;
var z = x > y ? "x is greater" : "y is greater";
console.log(z);
What is the output of the following code snippet?
var x = 5;
var y = "10";
var z = x == y;
console.log(z);
What is the value of "result" after the following code snippet is executed?
var a = null;
var b = 5;
var result = a ?? b;
console.log(result);
What are the comparison operators in JavaScript used for?
What is the purpose of logical operators in JavaScript?