JavaScript Operators (original) (raw)
What will be the result of the following operation?
JavaScript `
console.log(5 % 2);
`
Which operator is used to compare both value and type?
Which of the following is not a logical operator?
Which of the following is a logical AND operator?
Which of the following operators is used to assign a value to a variable?
What is the purpose of the nullish coalescing operator (??)?
- To return true if both operands are null
- To provide a default value when the left-hand side is null or undefined
- To perform logical AND operations
- To compare values strictly
Ternary operator is the best alternative of which aspect of Javascript?
What is the output of this ternary operation?
JavaScript `
const value = 10; console.log(value > 5 ? "Yes" : "No");
`
Which operator is used for optional chaining in JavaScript?
What will the following code log?
JavaScript `
console.log(5 == "5");
`
There are 10 questions to complete.
Take a part in the ongoing discussion