Generation

generate functionThu, 18 May 2023

function devolverPrimerElemento(array) { // Retornar el primer elemento del arreglo recibido por parámetro. // Tu código: }

function devolverPrimerElemento(array) { return array[0] } const numeros = [7, 5, 8] console.log(devolverPrimerElemento(numeros))

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant