Basic JavaScript (1/111) | Comment Your JavaScript Code | freeCodeCamp

preview_player
Показать описание
Basic JavaScript (1/111) | Comment Your JavaScript Code | freeCodeCamp

"Comments are lines of code that JavaScript will intentionally ignore. Comments are a great way to leave notes to yourself and to other people who will later need to figure out what that code does.

There are two ways to write comments in JavaScript:
- Using // will tell JavaScript to ignore the remainder of the text on the current line.
- You can make a multi-line comment beginning with /* and ending with */.

Best Practice:
As you write code, you should regularly add comments to clarify the function of parts of your code. Good commenting can help communicate the intent of your code—both for others and for your future self.

Try creating one of each type of comment."

Рекомендации по теме
Комментарии
Автор

Any questions or suggestions comment below ⬇️

I'll do my best to answer your questions and include your suggestions in my next video! 😉

straltech