|
|
@ -1,4 +1,37 @@
|
|
|
|
import { web_tech } from "./webtechs"
|
|
|
|
|
|
|
|
|
|
|
|
function web_tech()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
const webTechs = [
|
|
|
|
|
|
|
|
'HTML',
|
|
|
|
|
|
|
|
'CSS',
|
|
|
|
|
|
|
|
'JavaScript',
|
|
|
|
|
|
|
|
'React',
|
|
|
|
|
|
|
|
'Redux',
|
|
|
|
|
|
|
|
'Node',
|
|
|
|
|
|
|
|
'MongoDB',
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
return webTechs
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function country()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
const countries = [
|
|
|
|
|
|
|
|
'Albania',
|
|
|
|
|
|
|
|
'Bolivia',
|
|
|
|
|
|
|
|
'Canada',
|
|
|
|
|
|
|
|
'Denmark',
|
|
|
|
|
|
|
|
'Ethiopia',
|
|
|
|
|
|
|
|
'Finland',
|
|
|
|
|
|
|
|
'Germany',
|
|
|
|
|
|
|
|
'Hungary',
|
|
|
|
|
|
|
|
'Ireland',
|
|
|
|
|
|
|
|
'Japan',
|
|
|
|
|
|
|
|
'Kenya',
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
return countries
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
let text = 'I love teaching and empowering people. I teach HTML, CSS, JS, React, Python.'
|
|
|
|
let text = 'I love teaching and empowering people. I teach HTML, CSS, JS, React, Python.'
|
|
|
|
|
|
|
|
|
|
|
|
let new_array = []
|
|
|
|
let new_array = []
|
|
|
@ -34,10 +67,11 @@ console.log(shopping_cart) //3
|
|
|
|
|
|
|
|
|
|
|
|
console.log("untested")
|
|
|
|
console.log("untested")
|
|
|
|
let found = false
|
|
|
|
let found = false
|
|
|
|
for(let i in countries)
|
|
|
|
let c = country()
|
|
|
|
|
|
|
|
for(let i in c)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
if(countries[i] == "Ethiopia")
|
|
|
|
if (c[i] == "Ethiopia")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
console.log("ETHIOPIA")
|
|
|
|
console.log("ETHIOPIA")
|
|
|
|
found = true
|
|
|
|
found = true
|
|
|
@ -45,6 +79,26 @@ for(let i in countries)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(found == false)
|
|
|
|
if(found == false)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
countries.push("Ethiopia")
|
|
|
|
c.push("Ethiopia")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(countries) //4
|
|
|
|
console.log(c) //4
|
|
|
|
|
|
|
|
found = false
|
|
|
|
|
|
|
|
t = web_tech()
|
|
|
|
|
|
|
|
for(let i in t)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if(t[i] == "Sass")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
found = true
|
|
|
|
|
|
|
|
console.log("Sass is a cSS preprocess")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(found == false)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
t.push("Sass")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(t) //5
|
|
|
|
|
|
|
|
let frontEnd = ['HTML', 'CSS', 'JS', 'React', 'Redux']
|
|
|
|
|
|
|
|
let backEnd = ['Node', 'Express', 'MongoDB']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let fullstack = frontEnd + backEnd
|
|
|
|
|
|
|
|
console.log(fullstack)
|
|
|
|