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

School

Kevin Chisholm's School

Requirements

There are no additional requirements.
One-time Fee
$99.99
List Price:  $139.99
You save:  $40
€97.25
List Price:  €136.15
You save:  €38.90
£80.68
List Price:  £112.96
You save:  £32.27
CA$144
List Price:  CA$201.61
You save:  CA$57.60
A$160.86
List Price:  A$225.22
You save:  A$64.35
S$137.08
List Price:  S$191.92
You save:  S$54.83
HK$777.89
List Price:  HK$1,089.07
You save:  HK$311.18
CHF 90.97
List Price:  CHF 127.37
You save:  CHF 36.39
NOK kr1,139.30
List Price:  NOK kr1,595.07
You save:  NOK kr455.76
DKK kr725.48
List Price:  DKK kr1,015.70
You save:  DKK kr290.22
NZ$178.55
List Price:  NZ$249.98
You save:  NZ$71.42
د.إ367.26
List Price:  د.إ514.17
You save:  د.إ146.91
৳12,150.20
List Price:  ৳17,010.77
You save:  ৳4,860.56
₹8,577.78
List Price:  ₹12,009.23
You save:  ₹3,431.45
RM449.95
List Price:  RM629.95
You save:  RM180
₦155,056.49
List Price:  ₦217,085.29
You save:  ₦62,028.80
₨27,864.76
List Price:  ₨39,011.78
You save:  ₨11,147.01
฿3,443.65
List Price:  ฿4,821.25
You save:  ฿1,377.60
₺3,536.85
List Price:  ₺4,951.73
You save:  ₺1,414.88
B$619.14
List Price:  B$866.83
You save:  B$247.68
R1,880.16
List Price:  R2,632.30
You save:  R752.14
Лв190.21
List Price:  Лв266.30
You save:  Лв76.09
₩147,197.37
List Price:  ₩206,082.21
You save:  ₩58,884.83
₪365.83
List Price:  ₪512.18
You save:  ₪146.34
₱5,819.71
List Price:  ₱8,147.83
You save:  ₱2,328.12
¥15,736.02
List Price:  ¥22,031.06
You save:  ¥6,295.04
MX$2,057.48
List Price:  MX$2,880.55
You save:  MX$823.07
QR366.79
List Price:  QR513.53
You save:  QR146.73
P1,399.40
List Price:  P1,959.22
You save:  P559.81
KSh12,923.70
List Price:  KSh18,093.70
You save:  KSh5,170
E£5,076.82
List Price:  E£7,107.75
You save:  E£2,030.93
ብር12,838.81
List Price:  ብር17,974.85
You save:  ብር5,136.03
Kz91,190.88
List Price:  Kz127,670.88
You save:  Kz36,480
CLP$100,452.95
List Price:  CLP$140,638.15
You save:  CLP$40,185.20
CN¥731.80
List Price:  CN¥1,024.55
You save:  CN¥292.75
RD$6,145.90
List Price:  RD$8,604.51
You save:  RD$2,458.60
DA13,595.34
List Price:  DA19,034.03
You save:  DA5,438.68
FJ$232.70
List Price:  FJ$325.79
You save:  FJ$93.09
Q771.46
List Price:  Q1,080.08
You save:  Q308.61
GY$20,921.69
List Price:  GY$29,291.21
You save:  GY$8,369.51
ISK kr13,938.60
List Price:  ISK kr19,514.60
You save:  ISK kr5,576
DH1,017.88
List Price:  DH1,425.07
You save:  DH407.19
L1,855.11
List Price:  L2,597.23
You save:  L742.11
ден5,983.14
List Price:  ден8,376.63
You save:  ден2,393.49
MOP$801.07
List Price:  MOP$1,121.54
You save:  MOP$320.46
N$1,883.04
List Price:  N$2,636.34
You save:  N$753.29
C$3,679.74
List Price:  C$5,151.79
You save:  C$1,472.04
रु13,725.10
List Price:  रु19,215.69
You save:  रु5,490.59
S/375.62
List Price:  S/525.88
You save:  S/150.26
K408.93
List Price:  K572.52
You save:  K163.59
SAR375.49
List Price:  SAR525.70
You save:  SAR150.21
ZK2,782.43
List Price:  ZK3,895.51
You save:  ZK1,113.08
L483.79
List Price:  L677.32
You save:  L193.53
Kč2,447.66
List Price:  Kč3,426.82
You save:  Kč979.16
Ft40,343.23
List Price:  Ft56,482.13
You save:  Ft16,138.90
SEK kr1,113.99
List Price:  SEK kr1,559.64
You save:  SEK kr445.64
ARS$103,166.54
List Price:  ARS$144,437.29
You save:  ARS$41,270.74
Bs695.19
List Price:  Bs973.29
You save:  Bs278.10
COP$442,447.74
List Price:  COP$619,444.54
You save:  COP$176,996.79
₡50,975.86
List Price:  ₡71,368.24
You save:  ₡20,392.38
L2,540.76
List Price:  L3,557.16
You save:  L1,016.40
₲780,069.89
List Price:  ₲1,092,129.06
You save:  ₲312,059.16
$U4,408.31
List Price:  $U6,171.81
You save:  $U1,763.50
zł415.39
List Price:  zł581.57
You save:  zł166.17

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