Podcast
Questions and Answers
Which operator in JavaScript returns the value of the first operand if it can be converted to true, otherwise it returns the second operand?
Which operator in JavaScript returns the value of the first operand if it can be converted to true, otherwise it returns the second operand?
- NOT (!)
- XOR (^)
- OR (||) (correct)
- AND (&&)
What is the term used to describe a value that can be converted to true?
What is the term used to describe a value that can be converted to true?
- Falsy
- Truthy (correct)
- Operand
- Boolean
Which of the following is an example of an expression that can be converted to false?
Which of the following is an example of an expression that can be converted to false?
- 'false'
- true
- 1
- '0' (correct)
What can be used to explicitly convert the return value of the OR (||) operator to a boolean value?
What can be used to explicitly convert the return value of the OR (||) operator to a boolean value?
In logic, what is the function of the word 'or'?
In logic, what is the function of the word 'or'?
Flashcards are hidden until you start studying