source-academy/js-slang

[math]: math_hypot should take any number of arguments

Opened this issue · 1 comments

Currently:
math_hypot(3,4,5);
Line 1: Expected 2 arguments, but got 3.

Specs:
math_hypot() → {number}
computes the square root of the sum of squares of its arguments.
If no arguments are passed, the result is +0.
Parameters:
Name Type Description
value1,value2,... number given numbers

Name Type Description
value1,value2,... number given numbers

this issue persists as of today.