Skip to content

jbourke16/js-array-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

JavaScript Practice for Arrays

Use the below JSON sample data below to answer the JavaScript array questions.

const games = [
    {
        title: 'Final Fantasy VII Remake',
        release: '2020',
        studio: 'Square Enix'
    },
    {
        title: 'Final Fantasy VII Rebirth',
        release: '2024',
        studio: 'Square Enix'
    },
    {
        title: 'Baldur\'s Gate 3',
        release: '2023',
        studio: 'Larian Studios'
    },
    {
        title: 'Hades',
        release: '2019',
        studio: 'Supergiant'
    },
    {
        title: 'Zelda Breath of the Wild',
        release: '2017',
        studio: 'Nintendo'
    },
    {
        title: 'Zelda Tears of the Kingdom',
        release: '2023',
        studio: 'Nintendo'
    },
    {
        title: 'Kingdom Hearts III',
        release: '2020',
        studio: 'Square Enix'
    },
    {
        title: 'Horizon Zero Dawn',
        release: '2017',
        studio: 'Guerilla'
    }
]

Questions

  1. Use an array method to print out all the release dates of each game.

  2. Use an array method to print out all the titles of each game.

  3. Use an array method to print out all the studios of each game.

  4. Use an array method to sort each game by title.

  5. Use an array method to sort each game by release date.

  6. Use an array method to figure out if every game was released in 2020.

  7. Use an array method to figure out if every game title contains "the".

  8. Use an array method to figure out if every game studio is "Square Enix".

  9. Use an array method to figure out if at least one game was released in 2015.

  10. Use an array method to figure out if at least one game was released in 2017.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published