Buy Questpond's video subscriptions on
huge discount
.
Online: 2176
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:-
var output = Math.ceil(-30.02);
alert(output);
Posted by
Rajesh_Kumar
on 2/14/2014 | Category:
JavaScript Interview questions
| Views: 2126 |
Points: 40
Post
|
Interview FAQs
|
Exclusive Questions
|
Interview Home
Answer:
Output would be: -30
As we know that,Ceil method returns the smallest integer or value and here -30 is a smallest numeric value,so it will omit decimal part and return only -30.
Asked In:
Many Interviews |
Alert Moderator
Bookmark It
< Previous :
What will happen if we pass string value in Ceil m ...
Next > :
Give an example of Math.Ceil method?
Comments or Responses
Login to post response
More Interview Questions by Rajesh_Kumar
Give an example of Math.Ceil method?
What does Math.Ceil method do in Javascript?
Explain few Methods of Math Class?
What is the output of below Javascript code alert(Math.sqrt(4));
What do we mean by Properties in Dot Net?
What do we mean by read-only property?
Alternate way of changing Textbox color other than writing Javascript ...
How to change Textbox Color in Javascript?
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 ...