πŸ“Š JavaScript
Q. What output will come if we run the following part of the JavaScript code?
Code:
var string2Num=parseInt("123abc"); 
  • (A) Exception
  • (B) 123abc
  • (C) 123
  • (D) NaN
πŸ’¬ Discuss
βœ… Correct Answer: (C) 123

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
228
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
88%
Success Rate