11.) What happens when a return statement is used inside a forEach loop?
12.) Which keyword is used to stop a loop in JavaScript?
13.) Which operator is used to check for inequality in JavaScript?
14.) Which method is used to remove the last element from an array?
15.) What is the purpose of the splice() method?
16.) What will the following code output?
console.log(5 / 0);
17.) What will the following code output?
let x = 10;
let y = (x++, x + 5);
console.log(x, y);
18.) What is the result of the following code?
console.log(typeof NaN);
19.) What will the following code output?
console.log(0.1 + 0.2 === 0.3);
20.) What will the following code output?
let arr = [1, 2, 3];
arr[100] = 4;
console.log(arr.length);
Pages: 1 2