• +91 9723535972
  • info@interviewmaterial.com

Java Script Interview Questions and Answers

Question - How to test for bad numbers using JavaScript?

Answer - the global method, "isNaN()" can tell if a number has gone bad. var temperature = parseFloat(myTemperatureWidget.value); if(!isNaN(temperature)) { alert("Please enter a valid temperature."); }

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners