What does typeof null return in JavaScript?
What is the output of the following code?
console.log(x);
var x = 5;Which of the following is NOT a primitive data type in JavaScript?
What is the key difference between == and === in JavaScript?
What does the following code output?
const obj = {
name: 'Dev',
greet: () => {
console.log('Hello, ' + this.name);
}
};
obj.greet();Which method adds one or more elements to the END of an array and returns the new length?
What is the output of: console.log(0.1 + 0.2 === 0.3)?
What does the following code output?
for (let i = 0; i < 3; i++) {
setTimeout(() => console.log(i), 0);
}How do you correctly check if a variable is an Array?
What is the output of the following code?
let str = 'hello';
str.toUpperCase();
console.log(str);Which keyword declares a variable that cannot be reassigned?
What is the output of: console.log(typeof undefined);
console.log(typeof undefined);Which of these values is considered falsy in JavaScript?
What is the difference between let and var in terms of scope?
What does the following loop print?
for (let i = 0; i < 3; i++) {
console.log(i);
}Which operator is used to check strict inequality?
What will `typeof function(){}` return?
console.log(typeof function(){});How do you write a single-line comment in JavaScript?
What is the output of the following code?
console.log('5' + 3);
console.log('5' - 3);Which array method removes the LAST element and returns it?
Showing 1โ20 of 100 questions