• Post author:
  • Post category:Blog
  • Reading time:1 mins read
  • Post last modified:June 12, 2024

The result of the operation false || "false" will be:

  • 0
  • "false"
  • false
  • true
Answers Explanation & Hints:

The result of the operation false || "false" in JavaScript is indeed false.

The logical OR operator (||) returns the first truthy value it encounters or the last operand if all operands are falsy. In this case, the first operand is false, which is falsy. The second operand is the string "false", which is also truthy. Since the logical OR operator did not encounter a truthy value in the operands before reaching the last operand, it returns the last operand, which is false.

Therefore, the correct answer is false.

For more Questions and Answers:

JavaScipt Essentials 1 (JSE) | JSE1 – Module 3 Test Exam Answers Full 100% 

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments