Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

JavaScript Patterns: Modern Solutions to Common Challenges

via LinkedIn Learning

Write review

No Longer Offered

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
Discover JavaScript techniques that make a huge difference in your work but are not obvious from the outset.

Syllabus

Introduction
  • Learning Javascript: Finding the utility in less common patterns
  • What you should know
  • Using the exercise files
  • How to work with CoderPad challenges
1. Improving on Loops
  • Pain point: Sequential "for" loops become tedious
  • Solution: Three alternatives sequential "for" loops
  • Pain point: Processing arrays with loops is inelegant
  • Solution: Use filter(), map(), and reduce()
  • Solution: Transform a list of places
2. Objects Can Confuse
  • Pain point: Copied objects are not actually copies
  • Solution: JSON.stringify() and JSON.parse()
  • Pain point: The value of "this" can be hard to follow
  • Solution: Fix "this" using bind()
  • ES6+ solution: Arrow functions
  • Solution: Creating a unique robot army
3. Oh Functions, My Functions
  • Pain point: Send extra parameters to an event handler
  • Solution: Use bind() a different way
  • Pain point: Function signature doesn’t accept arrays
  • Solution: Apply and spread
  • Pain point: Refactoring function signatures
  • Solution: Objects for arguments
  • Solution overview: Story generator
Conclusion
  • Next steps and thank you

Taught by

Joe Chellman

Reviews

4.6 rating at LinkedIn Learning based on 190 ratings

Start your review of JavaScript Patterns: Modern Solutions to Common Challenges

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.