Métodos de arreglos - Array Methods | Ejercicio

PHOTO EMBED

Wed Oct 13 2021 12:06:23 GMT+0000 (Coordinated Universal Time)

Saved by @ianvalentino #javascript #array

let secretMessage = ['Learning', 'is', 'not', 'about', 'what', 'you', 'get', 'easily', 'the', 'first', 'time,', 'it', 'is', 'about', 'what', 'you', 'can', 'figure', 'out.', '-2015,', 'Chris', 'Pine,', 'Learn', 'JavaScript'];

secretMessage.pop();

// console.log(secretMessage.length);

secretMessage.push('to', 'Program.');

secretMessage[7] = 'right';

// console.log(secretMessage);

secretMessage.shift();

secretMessage.unshift('Programming');

secretMessage.splice(6, 5, 'know');

// console.log(secretMessage);

console.log(secretMessage.join(' '));
content_copyCOPY

LEARN JAVASCRIPT Secret Message

https://www.codecademy.com/courses/introduction-to-javascript/projects/secret-message