Get a month of TabletWise Pro for free! Click here to redeem 
TabletWise.com
 

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

Understanding the difference between Scope and Context will help you to write cleaner, more maintainable code and save you time when troubleshooting problems.

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

Understanding the difference between Scope and Context will help you to write cleaner, more maintainable code and save you time when troubleshooting problems.
15
Views
1:43:30
Share the link to this class
Copied

Scope and Context are two fundamental 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.

Following topics are covered in the course:

  1. Introduction - Welcome!
  2. Why is it so essential 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!

I am looking forward to having you in this course!

About the instructors

Kevin Chisholm

Sr. JavaScript, Angular, Node Consultant
Share the instructor profile
Copied

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.com.

Top Software Classes

New Software Classes

All Classes
Free for 30 Days
   The video is currently being processed.
   An error occurred while uploading the video. Please upload another video.
   Please upload the required file.
Quiz: #TITLE#
Questions: #QUESTIONS_COUNT#
Quiz: #TITLE#
Question /#QUESTIONS_COUNT#
Quiz: #TITLE#
Result: You correctly answered out of questions. Result: You correctly answered out of question. Result: You correctly answered out of questions attempted. Result: You correctly answered out of question attempted. Result: You did not attempt any question.
0
Saves
15
Views
This class has not been saved

Sign Up