generate functionFri, 21 Jul 2023

Actividades de arrays: 2. Encontrar mayor temperatura teniendo este array: [25, 30, 28, 32, 29, 27];

var arr = [25, 30, 28, 32, 29, 27]; var max = arr.reduce(function(a, b) { return Math.max(a, b); }); console.log(max)

Javascript
Generate More

Want to kickstart your project?Use the new AI Studio to create your code