How can I know that a variable is a number or not using a
JavaScript?

Answer Posted / venkat

By using isNaN() function

Is This Answer Correct ?    21 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to pad an array with the same value multiple times?

475


Which is faster for or foreach?

520


Tell me what types of loops exist in php?

578


Tell us how can we access the data sent through the url with the post method?

529


Which is a perfect example of runtime polymorphism?

537






What are the different types of array in php?

520


When are you supposed to use endif to end the conditional statement?

543


How to reset/destroy a cookie?

589


What is magic function in php?

546


What does mvc stand for and what does each component do?

547


How to initiate a session in php?

665


What difference between require() and require_once()?

557


What is a PHP Filter?

618


What are constructor and destructor in PHP?

559


What is session expiry?

544