A

Admin • 833K Points
Coach

Q. What will this return?

Code:
console.log('10' - '4' - '3' - 2 + '5');
  • (A) 15
  • (B) 1
  • (C) 15
  • (D) 15undefined
  • Correct Answer - Option(C)
  • Views: 25
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

'10' - '4' - '3' - 2 = 1, then 1 + '5' = '15'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.