MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/utk1j3/found_reddit_video_player_source_code/i9bf6hl?context=9999
r/ProgrammerHumor • u/weird_dude_69_420 • May 20 '22
533 comments sorted by
View all comments
1
I still don't understand what the difference is between function x(){} and const x = function(){}... Can someone explain?
function x(){}
const x = function(){}
0 u/[deleted] May 20 '22 [deleted] 1 u/Thenderick May 20 '22 Oh that makes sense. I thought it had something to do with scoping/hoisting but don't know for sure → More replies (1)
0
[deleted]
1 u/Thenderick May 20 '22 Oh that makes sense. I thought it had something to do with scoping/hoisting but don't know for sure → More replies (1)
Oh that makes sense. I thought it had something to do with scoping/hoisting but don't know for sure
→ More replies (1)
1
u/Thenderick May 20 '22
I still don't understand what the difference is between
function x(){}andconst x = function(){}... Can someone explain?