Skip to main content

Posts

Showing posts with the label javascript comments example

How and When to Write Comments in Javascript?

Watch here:  https://youtu.be/63fHgi2lvc0 Introduction   Programming languages offer the option of leaving notes for yourself or others. The JavaScript comment feature simplifies the production of more readable code. They are easy to write and recognize. In programming, our first consideration is usually the machine — how the computer is reading and interpreting the code we write. However, it’s equally important to consider the people who will be reading and working with the code. Whether you’re working with a team or on your own, you will need to learn to properly comment and structure your code for human readers. Comments are annotations in the source code of a program that are ignored by the interpreter, and therefore have no effect on the actual output of the code. Comments can be immensely helpful in explaining the intent of what your code is or should be doing. As a developer, it can be frustrating to delve into code written by someone else that was not properly commente...