What will the output of the below code? function clickValue(){ alert(Math.round(-20.5)); } clickValue();
Correct Answer: -20
Explanation:
Note: This Question is unanswered, help us to find answer for this one
JavaScript Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More JavaScript MCQ Questions
Document Methods in W3C DOM, supports all the methods available in Legacy DOM?
... JavaScript is also called client-side JavaScript?
How do you round the number 3.14, to the nearest integer?
A property is the object oriented equivalent of:
Consider parsing a URL with the following code snippet? var reg = /(\w+):\/\/([\w.]+)\/(\S*)/; var url = 'http://www.myblog.com/'; var result = url.match(reg); if (result != null) { var path = result[1]; }
Which company developed JavaScript?
The keyword or the property that you use to refer to an object through which they were invoked is
In HTML, JavaScript code must be inserted between <script> and </script> t
What does return do?
How can I get sum to be the sum of this array, var arr = [0,1,2,3]?