Q. What will be the output of the following code snippet?

Code:
var a = true + true + true * 3;
print(a)
  • (A) 3
  • (B) 0
  • (C) Error
  • (D) 5
πŸ’¬ Discuss
βœ… Correct Answer: (D) 5

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
313
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Admin
Publisher
πŸ“ˆ
98%
Success Rate