Created
January 29, 2019 12:38
-
-
Save Chuloo/5ee27a7ad66907279c780bc8937ea27b to your computer and use it in GitHub Desktop.
Concatenate elements in an array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// new array | |
const words = ['Hello', 'world!']; | |
// join elements in array | |
const greeting = words.join(' '); | |
// display new string | |
console.log(greeting); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment