+ 22

Why answer is "6" if said "Math.min(-6;3)"?

Please, help me, guys

15th Dec 2019, 7:12 PM
Alina
Alina - avatar
6 ответов
+ 18
سلام
17th Dec 2019, 3:36 PM
Alina
Alina - avatar
+ 16
Thanks
15th Dec 2019, 7:23 PM
Alina
Alina - avatar
+ 6
Alina if it is like this Math.min(-6, 3) then answer will be -6 But if it is like this Math.abs(Math.min(-6, 3)) then answer will be 6 check in this code https://code.sololearn.com/cf31lW5wyiqm/?ref=app
16th Dec 2019, 11:08 AM
A͢J
A͢J - avatar
+ 4
Math.min should be typed like this Math.min(-6,3); No semicolon in the parentheses Can you post the code this is used in? I got -6
15th Dec 2019, 7:20 PM
Odyel
Odyel - avatar
+ 2
الو دوست
17th Dec 2019, 2:46 PM
وارث وارث پردیس
وارث وارث پردیس - avatar