freeCodeCamp's Global Scope and Functions, Understanding Local & Global Variables In JS (8)

Channel:
Subscribers:
8,020
Published on ● Video Link: https://www.youtube.com/watch?v=Hjr0El3B0qY



Duration: 9:51
395 views
4


Welcome to another Javascript tutorial video. We are continuing our journey through freeCodeCamp's Basic Javascript section. We are still in the Introduction to Javscript lessons and in this video we go over the following lessons: Global Scope and Functions, Local Scope and Functions, Global vs. Local Scope in Functions, Return a Value from a Function with Return, Understanding Undefined Value returned from a Function & Assignment with a Returned Value. The lessons we go through in todays video are regarding global and local scope of functions in Javascript. We find out that in Javascript if we define a variable inside of a function, then that function treats that variable as a local variable. If we have a variable by the same name outside of that function, the local variable will take precedence. We learn that a local variable can access a global variable, but a global variable cannot access a local variable in Javascript.




Other Videos By We Will Code


2019-07-24freeCodeCamp's Use Headings to Show Hierarchical Relationships of Content, Learn Accessibility
2019-07-24freeCodeCamp's Applied Accessibility, Know When Alt Text Should Be Left Blank, Accessible Web Apps
2019-07-23freeCodeCamp's Add Text Alternative to Images for Visually Impaired Accessibility
2019-07-23freeCodeCamp's Introduction to the Accessibility Challenge
2019-07-19Jordan Peterson on the Founding Fathers views of Utopia
2019-07-18What would Jordan Peterson ask Vladimir Putin about his beliefs?
2019-01-26freeCodeCamps Switch Statements Practice, Javascript Switch Statement Practice (12)
2018-11-16freeCodeCamp's Introducing Else and Else If Statements, Chaining If Else If Statements (11)
2018-11-15freeCodeCamp's Greater Than, Less Than, AND and Or Operators, Basic Javascript (10)
2018-11-14freeCodeCamp's Array Method Practice, Equality and Strict Equality in Javascript (9)
2018-11-13freeCodeCamp's Global Scope and Functions, Understanding Local & Global Variables In JS (8)
2018-11-12freeCodeCamp, More Array Methods, JS Function Declarations & Parameters (7)
2018-11-09freeCodeCamp's Intro To Javascript, Understanding Arrays & Multi-Dimensional Arrays (6)
2018-11-08freeCodeCamp's Using Bracket Notation on Strings, Mad Libs, Intro to Javascript (5)
2018-11-03freeCodeCamp's Javascript Introduction, Escape Sequences, Concatenation. String Length (4)
2018-11-02freeCodeCamp's Intro to Javascript, Compound Assignment & String Literals (3)
2018-10-31freeCodeCamp's Make an Image Responsive,Web Design Principles
2018-10-30freeCodeCamp's Introduction to Javascript, Math Operators in JS (pt.2)
2018-10-29freeCodeCamp's Introduction to Javascript, Comments, Variables, & Casing
2018-10-29Create a Media Query, Responsive Web Design
2018-10-28freeCodeCamp's Make Motion More Natural Using a Bezier Curve



Tags:
local javascript variables
global scope in javscript
scope in javascript
functions in javascript