Q. How to write an IF condition in JavaScript?

  • (A) if a = 2 then
  • (B) if a = 2
  • (C) if a == 2 else
  • (D) if (a == 2)
πŸ’¬ Discuss
βœ… Correct Answer: (D) if (a == 2)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
199
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Yogesh
Publisher
πŸ“ˆ
90%
Success Rate