×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

What is the output of the following JavaScript code? | Question 21

78. What will be the output of the following JavaScript code?

<script>
	document.write(Math.round(107.5))
</script>
  1. 107.5
  2. 107
  3. 108
  4. 107.00

Answer: C) 108

Explanation:

The Math.round(x) returns the value of x rounded to its nearest integer. Thus, the output would be 108.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.