ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
Javascript Function Expression Vs Declaration For Beginners
ฝัง
- เผยแพร่เมื่อ 6 พ.ย. 2018
- Understand the difference between a javascript function expression vs declaration. The primary difference is that a function declaration loads before any code is executed. a function expression loads only when the interpreter reaches that line of code.
________________________
▶ Pluralsight 10-day free trial: pluralsight.px...
▶ Web Hosting: www.bluehost.c...
▶ Buy me a Coffee: ko-fi.com/w7w5...
▶ Check out my gear on Kit: kit.com/DevMat...
2:52 When we use Function Expression, We call it Initialization of a function. So we initialize a function to a variable.
That ending made me blush 😊 great video
Liked for the transparency at the end 😂
This have me the aha! moment I needed 👍
thank you very, this helps a lot, also thank you for including the discussion of hoisting
Glad it was helpful!
Straight to the point ❤
Very well explained. Thank you! I'm bookmarking this video for later.
Nice music in the end
This is me just from a different account, Hi :D
Thanks a lot. that was straight to the point. and the Doo do do doo killed me 😂😂
How did he get console.log to print to the screen? Is he using Visual Studio?
Im using an extension called "Quokka" for Visual Studio Code 😛
it helped me a lot , thank you!
Glad it helped!
So it just like a function...
Can be called only after it declared
We can call it multiple times anywhere anytime once its been
declared...
It takes the name of the variable instead of giving name after we write function keyword?
hi, may i know what extensions you used to make the output/error shows on the script?
The extension is called “Quokka”
@@DevMaterial thanks!
What if you use var instead of let, the variable will get hoisted and everything will be the same
good video and clear explanation. thank you
Happy to help 🙏
in case you declare that function with const instead let, it'd have the same behavior?
Yep, the function would have same behavior. The difference is that wouldn't be able to re-assign the value (the function in this case) that is within the const.
Massive help! Thank you! - Subscribed :)
Glad it helped!
Thanks for the video
You bet
What's the extension you're using in order to get the result right on VScode?
console ninja probably
thanks man !
thank you!
No worries!
Can you do the centuryfromyear in java?
thank you
Happy to help 🤘
Good luck
duru du duuuu duru duuuuu... duru duuuu !!
du du duuuu du du duuuu
Javascript is stupid