How do you round the number 3.14, to the nearest integer?
Correct Answer: Math.round(3.14)
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
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]; }
What's the output? X = 50 / 'Apple'; alert(x);
Which is not a valid JavaScript variable name?
Correct syntax to create a new object ‘car’ with the following attributes? Color = red Model = 2016 Weight = 500kg
What does return do?
How can I get sum to be the sum of this array, var arr = [0,1,2,3]?
The “var” and “function” are
JavaScript only hoists declarations, not initializations.
var x = 3 && 4; What is x?