Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

  

/ *

Literais de matriz

--------------

Declare algumas variáveis ​​atribuídas a matrizes de valores

* /

 

var numbers = []; // adicione números de 1 a 10 nesta matriz

var mentors; / Cria um array com os nomes dos mentores: Daniel, Irina e Rares

 

console.log(numbers);

console.log(mentors);

/ *

RESULTADO ESPERADO

---------------

[1,2,3,4,5,6,7,8,9,10]

['Daniel', 'Irina', 'Raros']

* /

  • © 2020 GitHub, Inc.

/ *

Propriedades de matriz

----------------

Conclua a função para testar se uma matriz está vazia (não possui valores)

* /

 

function isEmpty(arr) {

return; // complete this statement

}

/*

DO NOT EDIT BELOW THIS LINE

--------------------------- */

var numbers = [1, 2, 3];

var names = [];

console.log(isEmpty(numbers));

console.log(isEmpty(names));

 

*

RESULTADO ESPERADO

---------------

falso

verdade

* /

#19

welligton costa
Module by welligton costa, updated more than 1 year ago
No tags specified