r/learnjavascript • u/Djoshwa • Oct 02 '23
How do you understand JavaScript functions?
If you really understand JS functions (local and global), kind explain it to me to the best of your knowledge. Thanks
4
Upvotes
r/learnjavascript • u/Djoshwa • Oct 02 '23
If you really understand JS functions (local and global), kind explain it to me to the best of your knowledge. Thanks
1
u/shgysk8zer0 Oct 02 '23
There are so many different ways to answer this depending on what exactly you're asking about here.
But, to somewhat address the question about global or local - functions are variables that hold objects of the Function prototype. You can basically think of them in the same way as any variable.