Computer Science, asked by krushnapatil222003, 3 months ago

The output of : document.write(Math.max(-3,-5))
-3
-5
3
5​

Answers

Answered by BrainlyYoda
1

The output of document.write(Math.max(-3,-5)) will be -3

Extra Information

Math.max() is a function that will find the largest number among the numbers inputted.

In question two numbers are inputted in Math.max() function such as -3, -5, and we know -3 is greater than -5 so, -3 will be the output.

Some more examples

document.write(Math.max(-8, -6))

Output will be -6

document.write(Math.max(2, -8, 9))

Output will be 9

document.write is a method that is used to print the string present in it in a document stream.

Similar questions