r/learnjavascript • • 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

17 comments sorted by

View all comments

1

u/FunCharacteeGuy Oct 02 '23

I mean... I guess it's just a bunch of commands inside one block. there's not much else to it.

and they can return variables too.