E
E
Elena2020-05-05 12:53:47
JavaScript
Elena, 2020-05-05 12:53:47

How to get the contents of an array?

I have an array:
let mass = [2, 5, 10];
How to transfer its contents here:
Math.max(2, 5, 10)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
yarnstart, 2020-05-05
@Elena0394

Math.max(...mass)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question