Skip to content

Commit

Permalink
Aula 62
Browse files Browse the repository at this point in the history
  • Loading branch information
luizomf committed Oct 14, 2019
1 parent f212b6a commit 5ecbfd9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions aula62/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Valor por referência
// 0 1 2 3 4
// const nomes = ['Eduardo', 'Maria', 'Joana', 'Wallace', 'Rosana'];
// const novo = nomes.slice(1, -2);
// console.log(novo);

// const nome = 'Luiz Otávio Miranda';
// const nomes = nome.split(' ');
const nomes = [ 'Luiz', 'Otávio', 'Miranda' ];
const nome = nomes.join(' ');
console.log(nome);

0 comments on commit 5ecbfd9

Please sign in to comment.