Which keyword is used to declare variables in JavaScript?
Which of the following is NOT a valid variable name in JavaScript?
1 Crore+ students have signed up on EduRev. Have you? Download the App |
What is the result of the following expression: "5" + 2?
What is the value of x after executing the following code?
let x = 5;
x += 3;
Which of the following is NOT a JavaScript number method?
What is the output of the following code?
let x = 10;
let y = "5";
console.log(x + y);
What will be printed to the console when executing the following code?
let x = 10;
let y = 5;
console.log("The sum is: " + (x + y));
What is the output of the following code?
let x = 5;
let y = "2";
console.log(x - y);
What will be the value of result after executing the following code?
let x = 5;
let y = 2;
let result = x % y;
What will be printed to the console when executing the following code?
let x = 10;
let y = 3;
console.log(x / y);
What is the value of x after executing the following code?
let x = 5;
x++;
x += 2;
What will be the value of result after executing the following code?
let x = 10;
let y = 3;
let result = Math.pow(x, y);
What is the value of x after executing the following code?
let x = 5;
x *= 3 - 1;
What will be printed to the console when executing the following code?
let x = 5;
let y = 2;
console.log(x % y);
What is the output of the following code?
let x = "Hello";
let y = "World";
console.log(x + " " + y);
51 videos|28 docs|12 tests
|
51 videos|28 docs|12 tests
|