This course offers a detailed guide to JavaScript arrays, exploring common use cases and ways they differ from arrays in other languages.
Overview
Syllabus
Introduction
- So many ways to work with arrays
- What you should know
- Arrays overview
- Length property and direct assignment
- forEach for ease and readability
- Order arrays with sort
- Reverse array order with reverse
- Find a single element with find and findIndex
- Challenge: Order data
- Solution: Order data
- Does the array Include an element?
- Do elements pass a test?
- Challenge: Evaluate data
- Solution: Evaluate data
- The end: Push and pop data
- The beginning: Unshift and shift data
- Challenge: Stacks and queues
- Solution: Stacks and queues
- Reformat data with map
- Filter data with filter
- Single values with reduce
- Flat + map = flatMap
- Challenge: Advanced methods
- Solution: Advanced methods
- Next steps
Taught by
Jamie Pittman