How to comment code
Below is an example of how to comment your code:
Another way to comment..
We can also use
Why is commenting important?
When we write code, we know exactly why we are doing things, but upon looking at it again, it can be quite confusing why we did anything at all. Comments give context not only to us, but anyone else who picks up this code in the future. That let's everyone work better together, and means your code is much easier to understand.
- What are NodeLists, and how do they work?
- Using the New Google Analytics API to Get Most Popular Pages
- Creating a NodeJS Push Notification System with Service Workers