@ -72,9 +48,14 @@ for (let i = 0; i < itCompanies.length; i++) {
console.log(companies);
// Print the array like as a sentence: Facebook, Google, Microsoft, Apple, IBM,Oracle and Amazon are big IT companies.
console.log(`${itCompanies[0]}, ${itCompanies[1]}, ${itCompanies[2]}, ${itCompanies[3]}, ${itCompanies[4]}, ${itCompanies[5]}, and ${itCompanies[6]} are big IT companies.`)
// Check if a certain company exists in the itCompanies array. If it exist return the company else return a company is not found
letcompanyIndex=itCompanies.indexOf(company);
companyIndex===-1?console.log(`${company} is not found.`):console.log(`${company}`)
// Filter out companies which have more than one 'o' without the filter method