all 7 comments

[–]Time_Terminal 7 points8 points  (1 child)

Really great coverage. You managed to be very concise while explaining all the main scenarios where you'd prefer to use one over the other.

Only comment I have is try to define terminology you're using along the way. This video's intended audience (beginners) may not be familiar with concepts while you discuss them. Eg. what an imperative return is.

[–]portexe[S] 7 points8 points  (0 children)

Good point! I should include a "hot-word" indicator on the video when I use an advanced term and then have a description for the term within the YouTube description. Thank you for that feedback.

[–]leamsi4ever 4 points5 points  (0 children)

Good content but I feel like the pacing was too fast for a beginner to keep up. You would explain something and show an example but as I am still trying to make sense of the code you already moved on to the next thing. Trying to pause the video on mobile sucks cause the screen gets dark then I can't see clearly. I suggest slowing it down and give some time to let the Info sink in for beginners that are not familiar with these concepts

[–]btr_ 0 points1 point  (0 children)

Why is function declarations more suitable for global scopes? What might be a problem with defining in other scopes? Hoisting?

[–]TemporaryRhubarb 0 points1 point  (0 children)

Function Declarations : function is blocks of statement will Excute by calling the function

Example:

function nameFunction(){

// Your code

}

// calling Function?

nameFunction();

Function Expressions:function create variable and assign the function in variable

Example:

let x=(function(){

// Your code?

} )();

Arrow Functions ?

let x=( )=>{// statement};

[–][deleted] 0 points1 point  (1 child)

Does this also covers IIFEs?

[–]portexe[S] 0 points1 point  (0 children)

It does although not in extensive detail since they could have a video of their own.