JavaScript 3 🧬 JavaScript comments

preview_player
Показать описание
Thanks for watching.
Any thoughts? Write a comment.
If you liked the video, Like and Subscribe.
It helps to create more videos!

### a - JavaScript Comments
* Comments are used to explain your code or disable a portion of it.
* There are single-line and multi-line comments
* Single-line → starts with `//` and extend until the end of the line.
* Everything following `//` is ignored by JavaScript
* Used for brief explanations or to document code quickly
* Ideal for adding comments next to lines of code
* Multi-line → is enclosed within `/* */` and everything between the opening `/*` and closing `*/` slashes is considered a comment
* useful for longer explanations or disabling a block of code

#javascript #js #coding #omg #wtf
Рекомендации по теме
join shbcf.ru