## ⚑ Basic Syntax The basic syntax gives guide to follow the syntax to create the JavaScript code. *There are almost 4 stages of syntax in JavaScript.* ### ☴ Overview: 1. [Variables](#-variables) - [var](./variables.md#-var) - [let](./variables.md#-let) - [const](./variables.md#-const) 2. [Data types](#-data-types) - [primitive data types](./data-types.md#-primitive-data-types) - [numbers](./data-types.md#-numbers) - [strings](./data-types.md#-strings) - [booleans](./data-types.md#-booleans) - [null](./data-types.md#-null) - [undefined](./data-types.md#-undefined) - [symbols](./data-types.md#-symbols) - [non-primitive data types](./data-types.md#-non-primitive-data-types) - [Arrays](./arrays.md) - [Objects](./objects.md) 3. [Operators](#-operators) - [Arithmetic](./operators.md#-arithmetic) - [Comparison](./operators.md#-comparison) - [Logical](./operators.md#-logical) - [Assignment](./operators.md#-assignment) - [Ternary](./operators.md#-ternary) 4. [Control flow](#-control-flow) - [Conditional statements](./control-flow.md#-conditional-statements) - [Loops](./control-flow.md#-loops) ### ✦ Variables: Variables are used to store data in JavaScript. It allow to assign values to names and use those names later in the code. See More on this [Reference](./variables.md) ### ✦ Data Types: When storing data to names that data must be categorized as primitive or non-primitive data types. 1. Primitive Data Types: - numbers - strings - booleans - null - undefined - symbols 2. Non-Primitive Data Types: - Objects - Arrays See More on this [Reference](./data-types.md) ### ✦ Operators: It performs certain operation on those data either comparing or assigning. These are the operators used in JavaScript: - Arithmetic - Comparison - Logical - Assignment - Ternary See More on this [Reference](./operators.md) ### ✦ Control Flow: It control the flow of the JavaScript code execution. These are the control flow statements followed in JavaScript: - Conditional statements - Loops See More on this [Reference](./control-flow.md) --- [⇪ To Top](#-basic-syntax) [❮ Previous Topic](../introduction.md)   [Next Topic ❯](./variables.md) [⌂ Goto Home Page](../README.md)