1

Consider the following code snippet function hypotenuse(a, b) { function square(x) { return x*x; } return Math.sqrt(square(a) + square(b)); } What does the above code result?

Correct Answer: Sum of square of a and b

Make the most of this question

This page focuses on one JavaScript MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

JavaScript MCQs MCQ: Consider the following code snippet function hypotenuse(a, b) { function square(x) { return x*x; } return Math.sqrt(square(a) + square(b)); } What does the above code result? | Extra Education