|
|
|
@ -137,9 +137,9 @@ let companiesString = 'Facebook, Google, Microsoft, Apple, IBM, Oracle, Amazon'
|
|
|
|
|
const companies = companiesString.split(',')
|
|
|
|
|
|
|
|
|
|
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.'
|
|
|
|
|
const words = text.split(' ')
|
|
|
|
|
const words = txt.split(' ')
|
|
|
|
|
|
|
|
|
|
console.log(words)
|
|
|
|
|
// the text has special characters think how you can just get only the words
|
|
|
|
@ -721,4 +721,4 @@ const webTechs = [
|
|
|
|
|
|
|
|
|
|
🎉 CONGRATULATIONS ! 🎉
|
|
|
|
|
|
|
|
|
|
[<< Day 4](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/04_Day/04_day_conditionals.md) | [Day 6 >>](#)
|
|
|
|
|
[<< Day 4](https://github.com/Asabeneh/30DaysOfJavaScript/blob/master/04_Day/04_day_conditionals.md) | [Day 6 >>](#)
|
|
|
|
|