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

LinkedIn Learning

JavaScript: The Tricky Bits

via LinkedIn Learning

Overview

Discover JavaScript techniques that make a huge difference in your work but are not obvious from the outset.

Syllabus

Introduction
  • JavaScript can get tricky
  • What you should know
  • Using the exercise files
1. Improving on Loops
  • Pain point: Sequential for loops become tedious
  • Solution: Three alternatives
  • Pain point: Processing arrays with loops is inelegant
  • Solution: filter(), map(), and reduce()
  • Challenge: Iterate differently
  • Solution: Iterate differently
2. Objects Can Confuse
  • Pain point: Copied objects are not actually copies
  • Solution: JSON.stringify() and JSON.parse()
  • Pain point: The value of this, like, and always
  • Solution: bind()
  • ES6+ solution: Arrow functions
  • Challenge: Objects of hazard
  • Solution: Objects of hazard
3. Oh Functions, My Functions
  • Pain point: Send extra parameters to an event handler
  • Solution: bind() again
  • Pain point: Function signature doesn’t accept arrays
  • Solution: Function.prototype.apply()
  • Pain point: Refactoring function signatures
  • Solution: Objects for arguments
  • Challenge: Story generator
  • Solution overview: Story generator
  • Solution walkthrough: Story generator
Conclusion
  • Next steps and thank you

Taught by

Joe Chellman

Reviews

4.6 rating at LinkedIn Learning based on 186 ratings

Start your review of JavaScript: The Tricky Bits

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.