-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathatividade.js
More file actions
13 lines (13 loc) · 844 Bytes
/
Copy pathatividade.js
File metadata and controls
13 lines (13 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
//01Crie uma lista vazia, com o nome listaGenerica.
let listaGenerica = [];
//0202Crie uma lista de linguagens de programação chamada linguagensDeProgramacao com os seguintes elementos: 'JavaScript','C','C++', 'Kotlin' e 'Python'.
let linguagensDeProgramacao = ['JavaScript','C','C++', 'Kotlin','Python'];
//03Adicione à lista linguagensDeProgramacao os seguintes elementos: 'Java', 'Ruby' e 'GoLang'.
linguagensDeProgramacao.push(['Java', 'Ruby','GoLang']);
//04Crie uma lista com 3 nomes e exiba no console apenas o primeiro elemento.
listaDeNomes = ['Guilherme', 'Beatriz', 'Nina'];
console.log(listaDeNomes[0]);
//05Crie uma lista com 3 nomes e exiba no console apenas o segundo elemento.
console.log(listaDeNomes[1]);
//06Crie uma lista com 3 nomes e exiba no console apenas o último elemento.
console.log(listaDeNomes[2]);