Generation

generate functionWed, 15 Feb 2023

get out from array of ten numbers the lowest and the highest number

function get_min_max(array){ console.log("Min: " + Math.min(...array)); console.log("Max: " + Math.max(...array)); } get_min_max([1,2,3,4,5,6,7,8,9,10]);

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant