What’s the Difference Between Scope and Context in JavaScript ?

Kevin Chisholm, Web Development Consultant - JavaScript

Play Speed
  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x
33 Videos (1h 55m)
    • Why is it important to understand the difference?

      3:22
    • What is the difference between Scope and Context in JavaScript?

      4:13
    • Required Software

      1:12
    • Get Set Up

      3:59
    • Where to find the example code

      0:47
    • Scope Details - Three Kinds of Scope

      0:15
    • Global Scope - Discussion

      1:11
    • Global Scope - Demonstration

      1:39
    • Private Scope - Discussion

      2:09
    • Private Scope - Demonstration

      5:03
    • Block Scope - Discussion

      2:27
    • Block Scope - Demonstration

      5:37
    • Context - Discussion

      1:39
    • Context - Demonstration

      3:04
    • When They "feel" the Same - Discussion

      5:07
    • When They "feel" the Same - Code - Part 1

      5:16
    • When They "feel" the Same - Code - Part 2

      4:00
    • When They "feel" the Same - Code - Part 3

      1:18
    • When They "feel" the Same - Code - Part 4

      5:18
    • When They "feel" the Same - Code - Part 5

      2:00
    • When They "feel" the Same - Code - Part 6

      4:12
    • Making Better Decisions - Discussion

      1:39
    • Making Better Decisions - Demonstration

      6:05
    • A Bit More About Context

      0:13
    • Switching Context with .call() & .apply()

      5:15
    • Method Chaining - Discussion

      2:33
    • Method Chaining - Demonstration

      3:15
    • "this" vs $(this)

      5:36
    • A Bit More About Troubleshooting

      0:17
    • Troubleshooting a Scope Problem

      6:50
    • Troubleshooting a Context Problem

      7:19
    • Class Project

      11:01
    • Thank You!

      0:40

About This Class

2576be8d

Scope and Context are two very important concepts in JavaScript, and they are not the same thing.   Understanding the difference between Scope and Context will help you to write cleaner, more maintainable code and save you time when troubleshooting problems.

In this course, I will take you on a deep-dive into the world of Scope and Context. We will learn not only the difference between these two concepts, but also how to make the right decisions when planning your code and take the right steps when troubleshooting problems.

Course Outiline

  1. introduction - Welcome!
  2. Why is it so important to understand the difference between Scope and Context?
  3. What is the difference between Scope and Context?
  4. Required software
  5. Get set up
  6. Where to find the example code
  7. Scope Details - Three Kinds of Scope
  8. Global Scope  - Discussion
  9. Global Scope - Demonstration
  10. Private Scope - Discussion
  11. Private Scope - Demonstration
  12. Block Scope - Discussion
  13. Block Scope - Demonstration
  14. Context - Discussion
  15. When They "feel" the Same - Discussion
  16. When They "feel" the Same - Code - Part 1
  17. When They "feel" the Same - Code - Part 2
  18. When They "feel" the Same - Code - Part 3
  19. When They "feel" the Same - Code - Part 4
  20. When They "feel" the Same - Code - Part 5
  21. When They "feel" the Same - Code - Part 6
  22. Making Better Decisions - Discussion
  23. Making Better Decisions - Demonstration
  24. A Bit More About Context
  25. Switching Context with .call() & .apply()
  26. Method Chaining - Discussion
  27. Method Chaining  - Demonstration
  28. "this" vs $(this)
  29. A Bit More About Troubleshooting
  30. Troubleshooting a Scope Problem
  31. Troubleshooting a Context Problem
  32. Class Project
  33. Thank You!

Looking forward to having you in this course!

Kevin

16

Students

--

Projects

0

Reviews (0)

Kevin Chisholm

Web Development Consultant - JavaScript

I am a Web Developer focused on object-oriented JavaScript, Angular.js & Node.js. I have provided services to titles such as ConsumerReports.org, MyRecipes.com, ThisOldHouse.com, Instyle.com, AllYou.com, TravelAndLeisure.com, SouthernLiving.com, Health.com, Sunset.com, TimeForKids.com, SportIllustrated.com, CoastalLiving.com, People.com, TDAmeritrade.com, GreenMountainPower.com, Aquent & Aquent Gymnasium.

In my free time, I write about Front-End technologies: https://blog.kevinchisholm...

See full profile