Merge pull request #23 from npnjuguna/npnjuguna-array-using-splits-example-fix

array using splits example fix
pull/25/head
Asabeneh 6 years ago committed by GitHub
commit 980c1e479d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -137,9 +137,9 @@ let companiesString = 'Facebook, Google, Microsoft, Apple, IBM, Oracle, Amazon'
const companies = companiesString.split(',') const companies = companiesString.split(',')
console.log(companies) // ["Facebook", " Google", " Microsoft", " Apple", " IBM", " Oracle", " Amazon"] console.log(companies) // ["Facebook", " Google", " Microsoft", " Apple", " IBM", " Oracle", " Amazon"]
let text = let txt =
'I love teaching and empowering people. I teach HTML, CSS, JS, React, Python.' 'I love teaching and empowering people. I teach HTML, CSS, JS, React, Python.'
const words = text.split(' ') const words = txt.split(' ')
console.log(words) console.log(words)
// the text has special characters think how you can just get only the words // the text has special characters think how you can just get only the words

Loading…
Cancel
Save