Buy Questpond's video subscriptions on
huge discount
.
Online: 2828
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Interviews
>
JavaScript
>
Loading ...
What will be the output of below Javascript code,if we pass string value in Floor method?
try
{
alert(Math.floor("Rajesh12.90"));
}
catch (ex)
{
alert(ex.message);
}
Posted by
Rajesh_Kumar
on 2/17/2014 | Category:
JavaScript Interview questions
| Views: 2757 |
Points: 40
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
Output would be: NAN
Because If we pass any string value in Floor Method,then it will not throw any error but will show NAN means Not A Number as output.
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
What is SQRT2 in Math class?
Next > :
Give some example of Math.Floor method?
Comments or Responses
Login to post response
More Interview Questions by Rajesh_Kumar
Give some example of Math.Floor method?
What does Math.Floor function do?
Explain properties available in Math class?
How to get only random number between 1 and 100?
How to get only random number between 1 to 10?
What is the use of Random method in Javascript?
Explain few ScriptManager properties which are often used?
How to write only Readonly property in VB.Net?
Latest Interview Questions
What is the upcoming version of Android? What's new in that?
Two people will take 2 hours to paint 2 rooms.How many people required ...
There are 9 snooker balls in which one is slightly heavier in weight a ...
What is final class related to OOP's
Differentiate between jquery's ready and holdReady?
Differentiate undefined value and NULL value?
How can you describe === operator?
Differentiate IS and AS operators?
More ...