products:ict:javascript:basic_syntax_and_structure_of_javascript_code
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
products:ict:javascript:basic_syntax_and_structure_of_javascript_code [2023/07/31 17:54] – wikiadmin | products:ict:javascript:basic_syntax_and_structure_of_javascript_code [2023/07/31 17:56] (current) – wikiadmin | ||
---|---|---|---|
Line 24: | Line 24: | ||
4. **Comments: | 4. **Comments: | ||
- | | + | < |
+ | Comments are used to add explanatory notes to the code and are ignored by the JavaScript engine when executing the program. | ||
+ | |||
+ | They are denoted by `//` for single-line comments and `/* */` for multi-line comments. | ||
+ | </ | ||
+ | |||
5. **Operators: | 5. **Operators: | ||
+ | < | ||
- JavaScript supports various operators for performing operations on variables and values. Common operators include arithmetic operators (`+`, `-`, `*`, `/`, `%`), comparison operators (`<`, `>`, `<=`, `>=`, `===`, `!==`), logical operators (`&& | - JavaScript supports various operators for performing operations on variables and values. Common operators include arithmetic operators (`+`, `-`, `*`, `/`, `%`), comparison operators (`<`, `>`, `<=`, `>=`, `===`, `!==`), logical operators (`&& | ||
+ | </ | ||
6. **Control Flow:** | 6. **Control Flow:** |
products/ict/javascript/basic_syntax_and_structure_of_javascript_code.1690808073.txt.gz · Last modified: 2023/07/31 17:54 by wikiadmin