Create a function(s) that fulfills array with 10 random integer values and returns

  javascript

need to Create a function(s) that fulfills array with 10 random integer values and returns a multiply of 3 greatest values.
I try smth like this

function Value (array){{
    array = array(10).fill().map(() => Math.round(Math.random() * 1000))
    }
return Math.max(array*3)*3
}
consolelog('value');

but it didnt works(

Source: Ask Javascript Questions

LEAVE A COMMENT