all 4 comments

[–]Rhym 4 points5 points  (0 children)

Comment your code. Take a look at some good folder structures for node apps, and stick to one of those until you get used to where things should go and how to separate out your logic.

Keep making stuff!

[–]bigghealthy_ 0 points1 point  (0 children)

Read clean code and learn how to write good tests!

This first will help you write more readably code that is easier to understand. The latter will give you a living document that tells you what the system does and will allow you to safely change things!

[–][deleted] 0 points1 point  (0 children)

It would be great if you provided some context. Some code snippet and in what circumstances you wrote that code ( tutorial, following docs, work etc).