Good code usually has good comments. At the least, you can add a one-line description for each function. And any line of code that might be tricky for people to understand should have a comment for it.
I would recommend using the 'jsdoc' syntax for commenting, which is pretty much the standard. It's easy to go overboard with the syntax, too, which I don't recommend.
http://usejsdoc.org/about-getting-started.html
Good code usually has good comments. At the least, you can add a one-line description for each function. And any line of code that might be tricky for people to understand should have a comment for it.
I would recommend using the 'jsdoc' syntax for commenting, which is pretty much the standard. It's easy to go overboard with the syntax, too, which I don't recommend.
http://usejsdoc.org/about-getting-started.html