Coding / Programming Videos

Post your favorite coding videos and share them with others!

JavaScript Variable Scope

In this tutorial, you’ll learn about how JavaScript variable scope works and what it means for declaring your variables.

There are some things that can make the code you write confusing to debug and understand and understanding variable scope can help you to determine what’s going on.

In a nutshell, where you declare a variable in JavaScript matters. If you define a variable outside of a function, then it will be available inside that function. However, variables defined within a function will not be available outside.

In the tutorial, you’ll see examples of when you define a variable in the wrong place, how it can affect the rest of your JavaScript code.

JavaScript Crash Course Getting started
JavaScript Using the console
Working with JavaScript variables
JavaScript Data Types
JavaScript Booleans
Converting between strings and numbers in JavaScript
Working with strings in JavaScript
Working with numbers in JavaScript
Template literals
Working with arrays in JavaScript
Working with objects in JavaScript
JavaScript if statements
JavaScript Boolean Expressions
JavaScript Logical Operators
JavaScript For / While Loops
JavaScript Using Loops with Arrays
JavaScript Switch Statments
JavaScript Functions 
JavaScript Anonymous Functions
JavaScript Classes
The JavaScript Date Object
JavaScript Variable Scope
JavaScript Array Functions
JavaScript Regular Expressions
JavaScript Error Handling
Where Next?

JavaScript Crash Course For Beginners


Leave a Reply

Please Login to comment
Notify of
Translate »