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.
69
views
Share the link to this page
Copied

About the Class

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!

Author

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

Requirements

One-time Purchase
$99.99
List Price:  $139.99
You save:  $40
€93.22
List Price:  €130.52
You save:  €37.29
£81.49
List Price:  £114.09
You save:  £32.60
CA$136.73
List Price:  CA$191.43
You save:  CA$54.70
A$148.82
List Price:  A$208.35
You save:  A$59.53
S$133.77
List Price:  S$187.28
You save:  S$53.51
HK$784.23
List Price:  HK$1,097.95
You save:  HK$313.72
CHF 92.60
List Price:  CHF 129.65
You save:  CHF 37.04
NOK kr1,064.63
List Price:  NOK kr1,490.52
You save:  NOK kr425.89
DKK kr694.11
List Price:  DKK kr971.78
You save:  DKK kr277.67
NZ$159.97
List Price:  NZ$223.97
You save:  NZ$63.99
د.إ367.23
List Price:  د.إ514.14
You save:  د.إ146.90
৳10,527.42
List Price:  ৳14,738.81
You save:  ৳4,211.39
₹8,256.39
List Price:  ₹11,559.28
You save:  ₹3,302.89
RM448.55
List Price:  RM627.99
You save:  RM179.44
₦46,034.39
List Price:  ₦64,449.99
You save:  ₦18,415.60
₨28,185.67
List Price:  ₨39,461.07
You save:  ₨11,275.39
฿3,411.80
List Price:  ฿4,776.66
You save:  ฿1,364.86
₺1,901.22
List Price:  ₺2,661.79
You save:  ₺760.56
B$524.18
List Price:  B$733.88
You save:  B$209.69
R1,849.15
List Price:  R2,588.89
You save:  R739.73
Лв182.40
List Price:  Лв255.38
You save:  Лв72.97
₩130,567.01
List Price:  ₩182,799.04
You save:  ₩52,232.02
₪366.67
List Price:  ₪513.36
You save:  ₪146.68
₱5,429.10
List Price:  ₱7,600.96
You save:  ₱2,171.85
¥13,160.73
List Price:  ¥18,425.55
You save:  ¥5,264.82
MX$1,881.25
List Price:  MX$2,633.82
You save:  MX$752.57
QR365.20
List Price:  QR511.29
You save:  QR146.09
P1,327.85
List Price:  P1,859.04
You save:  P531.19
KSh12,998.70
List Price:  KSh18,198.70
You save:  KSh5,200
E£3,089.35
List Price:  E£4,325.22
You save:  E£1,235.86
ብር5,383.81
List Price:  ብር7,537.55
You save:  ብር2,153.74
Kz50,475.05
List Price:  Kz70,667.09
You save:  Kz20,192.04
CLP$82,549.74
List Price:  CLP$115,572.94
You save:  CLP$33,023.20
CN¥687.79
List Price:  CN¥962.93
You save:  CN¥275.14
RD$5,488.28
List Price:  RD$7,683.81
You save:  RD$2,195.53
DA13,581.40
List Price:  DA19,014.50
You save:  DA5,433.10
FJ$220.87
List Price:  FJ$309.23
You save:  FJ$88.36
Q779.77
List Price:  Q1,091.71
You save:  Q311.93
GY$21,097.31
List Price:  GY$29,537.08
You save:  GY$8,439.77
ISK kr13,993.60
List Price:  ISK kr19,591.60
You save:  ISK kr5,598
DH1,035.63
List Price:  DH1,449.93
You save:  DH414.29
L1,858.04
List Price:  L2,601.33
You save:  L743.29
ден5,744.94
List Price:  ден8,043.15
You save:  ден2,298.20
MOP$807.69
List Price:  MOP$1,130.80
You save:  MOP$323.11
N$1,841.81
List Price:  N$2,578.61
You save:  N$736.80
C$3,657
List Price:  C$5,119.95
You save:  C$1,462.94
रु13,215.89
List Price:  रु18,502.77
You save:  रु5,286.88
S/378.97
List Price:  S/530.58
You save:  S/151.60
K352.34
List Price:  K493.29
You save:  K140.95
SAR375.64
List Price:  SAR525.92
You save:  SAR150.27
ZK2,062.19
List Price:  ZK2,887.16
You save:  ZK824.96
L458.94
List Price:  L642.54
You save:  L183.59
Kč2,236.07
List Price:  Kč3,130.59
You save:  Kč894.51
Ft36,878.71
List Price:  Ft51,631.67
You save:  Ft14,752.96
SEK kr1,037.05
List Price:  SEK kr1,451.91
You save:  SEK kr414.86
ARS$20,448.02
List Price:  ARS$28,628.05
You save:  ARS$8,180.02
Bs690.38
List Price:  Bs966.57
You save:  Bs276.18
COP$483,170.06
List Price:  COP$676,457.41
You save:  COP$193,287.35
₡54,163.74
List Price:  ₡75,831.40
You save:  ₡21,667.66
L2,466.13
List Price:  L3,452.68
You save:  L986.55
₲720,651.85
List Price:  ₲1,008,941.42
You save:  ₲288,289.57
$U3,951.24
List Price:  $U5,531.89
You save:  $U1,580.65

What's Included

Language: English
Level: Intermediate
Skills: HTML, JavaScript
Age groups: 18+ years, All ages
Duration: 1 hour 43 minutes
32 Videos
0
Saves
69
Views
This class has not been saved

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.