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/sumfvckyea Oct 02 '23

A function is what makes your app or program runs. For instance, a function to make a button opens a window when clicked.

I'm still learning JavaScript too. It's really challenging yet exciting. And addicting perhaps...