What is the purpose of the following code in JavaScript?
a) Create a one-dimensional array with the average temperature of the week.
b) Create a tw...
What is the purpose of the following code in JavaScript? a) Create a one-dimensional array with the average temperature of the week. b) Create a two-dimensional array with the average temperature of the week. c) Create a two-dimensional array with the average temperature of the month. d) Create a one-dimensional array with the average temperature of the month. I - The code creates a two-dimensional array with the average temperature of the week. II - The code prints the element in line 0 at position 6. III - The code iterates and prints the two-dimensional array. a) I and II are correct. b) I and III are correct. c) II and III are correct. d) All statements are correct.
A resposta correta é a alternativa (b) I e III estão corretas. O código cria uma matriz bidimensional com a temperatura média da semana e itera e imprime essa matriz.
0
0
Faça como milhares de estudantes: teste grátis o Passei Direto
Compartilhar