parent
6839393dd1
commit
e71be9005b
@ -0,0 +1,13 @@
|
||||
const countries = [
|
||||
'Albania',
|
||||
'Bolivia',
|
||||
'Canada',
|
||||
'Denmark',
|
||||
'Ethiopia',
|
||||
'Finland',
|
||||
'Germany',
|
||||
'Hungary',
|
||||
'Ireland',
|
||||
'Japan',
|
||||
'Kenya',
|
||||
]
|
@ -0,0 +1,16 @@
|
||||
let text = 'I love teaching and empowering people. I teach HTML, CSS, JS, React, Python.'
|
||||
|
||||
let new_array = []
|
||||
let new_element = ""
|
||||
for(let x in text)
|
||||
{
|
||||
if(text[x] == " ")
|
||||
{
|
||||
new_array.push(new_element)
|
||||
new_element = ""
|
||||
} else {
|
||||
new_element = new_element + text[x]
|
||||
}
|
||||
}
|
||||
console.log(new_array.length)
|
||||
console.log(new_array)
|
@ -0,0 +1,9 @@
|
||||
const webTechs = [
|
||||
'HTML',
|
||||
'CSS',
|
||||
'JavaScript',
|
||||
'React',
|
||||
'Redux',
|
||||
'Node',
|
||||
'MongoDB',
|
||||
]
|
Loading…
Reference in new issue