Javascript is a high-level just-in-time compiled programming language that conforms to ECMAScript specification

Features

Setup

How to run JavaScript

There are 2 ways to run javascript

Adding comments

// this is a js comment

Variables

let - a mutable variable

const - an immutable variable that always needs to be initialised

Data types

Primitive types non-primitive types
String
const name = ‘Jeff’ Objects - key-value pairs
`let person = {
'name':''jeff,
'age' = 22
}`
Number
const age = 22
Boolean
const isNewUser = False
Undefined - not assigned/defined
let result
let result = undefined
Null - empty/unknown
let data = null
BigInt - denotes int value larger than number type can hold
Symbol - denotes a value that is unique & unchangeable