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.
00:00
00:00

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.
76
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
€91.94
List Price:  €128.72
You save:  €36.77
£77.24
List Price:  £108.14
You save:  £30.89
CA$143.79
List Price:  CA$201.31
You save:  CA$57.52
A$158.68
List Price:  A$222.17
You save:  A$63.48
S$133.98
List Price:  S$187.59
You save:  S$53.60
HK$778.31
List Price:  HK$1,089.67
You save:  HK$311.35
CHF 88.06
List Price:  CHF 123.29
You save:  CHF 35.23
NOK kr1,049.06
List Price:  NOK kr1,468.72
You save:  NOK kr419.66
DKK kr689.01
List Price:  DKK kr964.64
You save:  DKK kr275.63
NZ$174.91
List Price:  NZ$244.88
You save:  NZ$69.97
د.إ367.26
List Price:  د.إ514.19
You save:  د.إ146.92
৳12,151.66
List Price:  ৳17,012.82
You save:  ৳4,861.15
₹8,553.03
List Price:  ₹11,974.59
You save:  ₹3,421.55
RM443.30
List Price:  RM620.64
You save:  RM177.34
₦153,153.68
List Price:  ₦214,421.28
You save:  ₦61,267.60
₨28,019.91
List Price:  ₨39,228.99
You save:  ₨11,209.08
฿3,364.07
List Price:  ฿4,709.83
You save:  ฿1,345.76
₺3,799.44
List Price:  ₺5,319.36
You save:  ₺1,519.92
B$575.86
List Price:  B$806.23
You save:  B$230.36
R1,828.81
List Price:  R2,560.41
You save:  R731.60
Лв180.73
List Price:  Лв253.04
You save:  Лв72.30
₩147,025.29
List Price:  ₩205,841.29
You save:  ₩58,816
₪369.43
List Price:  ₪517.22
You save:  ₪147.78
₱5,736.37
List Price:  ₱8,031.15
You save:  ₱2,294.78
¥14,983
List Price:  ¥20,976.80
You save:  ¥5,993.80
MX$2,037.90
List Price:  MX$2,853.15
You save:  MX$815.24
QR364.56
List Price:  QR510.41
You save:  QR145.84
P1,365.94
List Price:  P1,912.37
You save:  P546.43
KSh12,923.70
List Price:  KSh18,093.70
You save:  KSh5,170
E£5,056.49
List Price:  E£7,079.29
You save:  E£2,022.80
ብር13,135.94
List Price:  ብር18,390.85
You save:  ብር5,254.90
Kz91,190.88
List Price:  Kz127,670.88
You save:  Kz36,480
CLP$94,116.58
List Price:  CLP$131,766.98
You save:  CLP$37,650.40
CN¥726.28
List Price:  CN¥1,016.83
You save:  CN¥290.54
RD$6,310.66
List Price:  RD$8,835.18
You save:  RD$2,524.51
DA13,369.86
List Price:  DA18,718.34
You save:  DA5,348.48
FJ$229.86
List Price:  FJ$321.82
You save:  FJ$91.95
Q771.31
List Price:  Q1,079.86
You save:  Q308.55
GY$20,917.93
List Price:  GY$29,285.94
You save:  GY$8,368.01
ISK kr13,156.68
List Price:  ISK kr18,419.88
You save:  ISK kr5,263.20
DH967.24
List Price:  DH1,354.17
You save:  DH386.93
L1,794.83
List Price:  L2,512.84
You save:  L718
ден5,693.73
List Price:  ден7,971.46
You save:  ден2,277.72
MOP$801.14
List Price:  MOP$1,121.64
You save:  MOP$320.49
N$1,816.94
List Price:  N$2,543.78
You save:  N$726.84
C$3,679.28
List Price:  C$5,151.14
You save:  C$1,471.86
रु13,671.10
List Price:  रु19,140.09
You save:  रु5,468.98
S/363.97
List Price:  S/509.57
You save:  S/145.60
K412.10
List Price:  K576.97
You save:  K164.86
SAR374.95
List Price:  SAR524.94
You save:  SAR149.99
ZK2,872.51
List Price:  ZK4,021.63
You save:  ZK1,149.12
L459.62
List Price:  L643.49
You save:  L183.86
Kč2,302.96
List Price:  Kč3,224.24
You save:  Kč921.27
Ft37,173.28
List Price:  Ft52,044.08
You save:  Ft14,870.80
SEK kr1,001.17
List Price:  SEK kr1,401.68
You save:  SEK kr400.51
ARS$105,976.73
List Price:  ARS$148,371.66
You save:  ARS$42,394.93
Bs690.86
List Price:  Bs967.24
You save:  Bs276.37
COP$418,506.14
List Price:  COP$585,925.34
You save:  COP$167,419.20
₡49,965.09
List Price:  ₡69,953.13
You save:  ₡19,988.03
L2,557.67
List Price:  L3,580.85
You save:  L1,023.17
₲800,928.37
List Price:  ₲1,121,331.77
You save:  ₲320,403.39
$U4,216.01
List Price:  $U5,902.59
You save:  $U1,686.57
zł385.94
List Price:  zł540.33
You save:  zł154.39

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