|
| 1 | +## ⚑ Basic Syntax |
| 2 | +The basic syntax gives guide to follow the syntax to create the JavaScript code. |
| 3 | + |
| 4 | +*There are almost 4 stages of syntax in JavaScript.* |
| 5 | + |
| 6 | +### ☴ Overview: |
| 7 | +1. [Variables](#-variables) |
| 8 | + - [var](./variables.md#-var) |
| 9 | + - [let](./variables.md#-let) |
| 10 | + - [const](./variables.md#-const) |
| 11 | +2. [Data types](#-data-types) |
| 12 | + - [primitive data types](./data-types.md#-primitive-data-types) |
| 13 | + - [numbers](./data-types.md#-numbers) |
| 14 | + - [strings](./data-types.md#-strings) |
| 15 | + - [booleans](./data-types.md#-booleans) |
| 16 | + - [null](./data-types.md#-null) |
| 17 | + - [undefined](./data-types.md#-undefined) |
| 18 | + - [symbols](./data-types.md#-symbols) |
| 19 | + - [non-primitive data types](./data-types.md#-non-primitive-data-types) |
| 20 | + - [Arrays](./arrays.md) |
| 21 | + - [Objects](./objects.md) |
| 22 | +3. [Operators](#-operators) |
| 23 | + - [Arithmetic](./operators.md#-arithmetic) |
| 24 | + - [Comparison](./operators.md#-comparison) |
| 25 | + - [Logical](./operators.md#-logical) |
| 26 | + - [Assignment](./operators.md#-assignment) |
| 27 | + - [Ternary](./operators.md#-ternary) |
| 28 | +4. [Control flow](#-control-flow) |
| 29 | + - [Conditional statements](./control-flow.md#-conditional-statements) |
| 30 | + - [Loops](./control-flow.md#-loops) |
| 31 | + |
| 32 | +### ✦ Variables: |
| 33 | +Variables are used to store data in JavaScript. It allow to assign values to names and use those names later in the code. |
| 34 | + |
| 35 | +See More on this [Reference](./variables.md) |
| 36 | + |
| 37 | +### ✦ Data Types: |
| 38 | +When storing data to names that data must be categorized as primitive or non-primitive data types. |
| 39 | +1. Primitive Data Types: |
| 40 | + - numbers |
| 41 | + - strings |
| 42 | + - booleans |
| 43 | + - null |
| 44 | + - undefined |
| 45 | + - symbols |
| 46 | +2. Non-Primitive Data Types: |
| 47 | + - Objects |
| 48 | + - Arrays |
| 49 | + |
| 50 | +See More on this [Reference](./data-types.md) |
| 51 | + |
| 52 | +### ✦ Operators: |
| 53 | +It performs certain operation on those data either comparing or assigning. These are the operators used in JavaScript: |
| 54 | +- Arithmetic |
| 55 | +- Comparison |
| 56 | +- Logical |
| 57 | +- Assignment |
| 58 | +- Ternary |
| 59 | + |
| 60 | +See More on this [Reference](./operators.md) |
| 61 | + |
| 62 | +### ✦ Control Flow: |
| 63 | +It control the flow of the JavaScript code execution. These are the control flow statements followed in JavaScript: |
| 64 | +- Conditional statements |
| 65 | +- Loops |
| 66 | + |
| 67 | +See More on this [Reference](./control-flow.md) |
| 68 | + |
| 69 | +--- |
| 70 | +[⇪ To Top](#-basic-syntax) |
| 71 | + |
| 72 | +[❮ Previous Topic](../introduction.md)   [Next Topic ❯](./variables.md) |
| 73 | + |
| 74 | +[⌂ Goto Home Page](../README.md) |
0 commit comments