Skip to content

Latest commit

 

History

History
74 lines (61 loc) · 2.33 KB

basic-syntax.md

File metadata and controls

74 lines (61 loc) · 2.33 KB

⚑ 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
  2. Data types
  3. Operators
  4. Control flow

✦ 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

✦ 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
  1. Non-Primitive Data Types:
  • Objects
  • Arrays

See More on this Reference

✦ 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

✦ 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


⇪ To Top

❮ Previous TopicNext Topic ❯

⌂ Goto Home Page