Outline

Here's a possible solution to this exercise:

// forEach and includes

const scores = [5, 8, 3, 10, 7];

// 1. Loop over each item in the array using forEach and log it to the console after multiplying it by 3
scores.forEach(score => console.log(score * 3));

// 2. Use the includes method to see if the number 8 exists in the array
console.log(scores.includes(8));

// 3. Use the includes method to see if the string 'JavaScript' exists in the array
const hasJavaScript = scores.includes('JavaScript');
console.log(hasJavaScript);

You can see this solution here on StackBlitz.

 

I finished! On to the next chapter