CJCoding With Joseph
← Back to Question List
JavaScript Code Walkthrough #27

parseInt Versus Number

mediumCasting

📄 Code

Read carefully — what does this print?
1console.log(parseInt("42px"));
2console.log(Number("42px"));
3console.log(parseInt("3.99"));
4console.log("5" * 2);

🎯 Your Answer