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.
- How to Stop Using jQuery
- Using the New Google Analytics API to Get Most Popular Pages
- How to Change Node.js Version
- Web Components and the Shadow DOM