Skip to content

Commit a214eac

Browse files
committed
readme update
1 parent 0ad5a13 commit a214eac

File tree

1 file changed

+14
-0
lines changed
  • Courses/IBM-JavaScript-Essentials/Scope

1 file changed

+14
-0
lines changed

Courses/IBM-JavaScript-Essentials/Scope/readme.md

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## What you will learn
2+
3+
In this lab, you will develop an understanding of JavaScript variables, including var, let, and const. JavaScript variables act as containers for storing data, allowing dynamic programming by facilitating the storage, manipulation, and retrieval of values across various sections of code within applications. You will learn how to use variables to enhance code readability and maintainability, enabling efficient management and reuse of variable values throughout your entire programs.
4+
5+
## Learning objectives
6+
7+
1. Understand where variables work: Learn how 'var,' 'let,' and 'const' variables operate in different parts of your code, where you can use them, and potential issues they might cause.
8+
9+
2. Know how variables behave: Discover the distinct behaviors of 'var,' 'let,' and 'const.' Understand how they can change and when they remain constant. Learn why declaring variables with 'var,' 'let,' and 'const' is essential for maintaining safe and reliable data.
10+
11+
3. Learn the right way to use them: Determine when to use 'let' for changing data, 'const' for constants, and why using 'var' might not be the best choice anymore. It's important to selecting the right variable for the code.
12+
13+
4. Make your code stronger: Through a deep understanding of 'var,' 'let,' and 'const,' you'll write more resilient code less prone to breakage. Avoid bugs and create code that is not only comprehensible to you but also to others, ensuring it operates smoothly.
14+
115
## Summary
216

317
1. Variable scope overview:

0 commit comments

Comments
 (0)