File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ // 📌 JavaScript Basics - Syntax
2+
3+ // Welcome to the first section of the JavaScript Basics tutorial!
4+ // Here, you'll learn about JavaScript syntax and fundamental rules.
5+
6+ // 📖 What is JavaScript Syntax?
7+ // JavaScript syntax refers to the set of rules that define how JavaScript programs are written and interpreted.
8+
9+ // 🖥️ Example:
10+
11+ // Single-line comment
12+
13+ /*
14+ Multi-line comment
15+ */
16+
17+ console . log ( "Hello, World!" ) ; // Outputs text to the console
18+
19+ // 📝 Basic Syntax Rules
20+ // - Statements end with a semicolon (`;`) (optional but recommended).
21+ // - JavaScript is case-sensitive (`myVariable` and `myvariable` are different).
22+ // - Blocks of code are enclosed in curly braces `{}`.
23+ // - Comments can be single-line (`//`) or multi-line (`/* */`).
You can’t perform that action at this time.
0 commit comments