Scope- Practice Good Scoping

https://vimeo.com/547662250

Tightly scoping variables will greatly improve your code. It makes your code more understandable since it clarifies which variables are associated with which part of the program. It makes your code more modular and easier to maintain. It will make your code more readable since blocks organize code into discrete sections. It will save memory in your code because variables will cease to exist after the block of code runs. Note: If a variable doesn’t need to exist outside of a block, it shouldn’t. In the following video, we will talk about how to use good scoping principles in your code.

Instructions: 

  1. Click the play button to watch the video lesson.
  2. Watch the lesson as many times as needed.
  3. Code along with the instructor using the integrated code editor in the center of your screen.
  4. You can use the Run button beneath the code editor to test your code.
  5. Output from the code that you have written will appear in the panel on the right side of your screen.

If you get stuck or need assistance, you can click the button below to connect with a tutor. 

For additional questions or technical support, email support@veroskills.com