Up next


Full Stack Web Dev | What Is Javascript? - Part 3 (Functions and Scope)

18 Views
an_object_is_a
an_object_is_a
subs count
42
Published on 15 Dec 2019 / In How-to & Style

Part 3 of my intro to basic JavaScript. I discuss functions and scope in this one.

Part 2: https://www.mgtow.tv/watch/ful....l-stack-web-dev-what

code used in this video:
1.
function say_hello() {
console.log('hello');
}
2.
function add_these_numbers(num_1, num_2) {
const sum = num_1 + num_2;
return sum;
}
let y = add_these_numbers(5, 2);

3.
const immutable = 5;

function inner_scope_1(parameter_1) {
console.log("Outter immutable: " + parameter_1);
const immutable = 200;
console.log("inner_scope_1's immutable: " + immutable);

inner_scope_2();
}

function inner_scope_2() {
const immutable = 999;
console.log("inner_scope_2's immutable: " + immutable);
}

Subscribe to my channel: https://www.mgtow.tv/@an_object_is_a

If you find value in what I do, think about supporting my channel: https://www.paypal.me/anobjisa

Find me here:
Youtube: https://www.youtube.com/channel/UCar-9GMCRk9QdKJXq
Bitchute: https://www.bitchute.com/channel/gPUmRsVcChxX/
Twitter: https://twitter.com/anobjectisa1
Minds: https://www.minds.com/an_object_is_a/
Instagram: https://www.instagram.com/an_object_is_a/

Show more
0 Comments sort Sort By


Up next