Javascript
JavaScript Fundamentals -- Arrays in JavaScript

Exercise 1

Mute
Current Time 0:00
/
Duration Time 0:00
Loaded: 0%
Progress: 0%
Stream TypeLIVE
Remaining Time -0:00
 
PRO

Here's the first exercise for this section:

// map and filter
const courses = [
  { name: 'JavaScript Fundamentals' },
  { name: 'Angular CLI Basics' },
  { name: 'Deploying Apps to Netlify' }
]

// 1. Use the map method to create an array of course names (strings only) from the courses array

// 2. Use the filter method to create an array from the courses array where the only item is the one with a name of 'JavaScript Fundamentals'

You can fork this exercise from StackBlitz by clicking here.

 

I finished! On to the next chapter