1. Truthy and Falsy

The values below are always falsy:

  • false
  • 0 (zero)
  • ‘’ , “” (empty string)
  • undefined
  • null
  • NaN

Everything else other than…

Types are different variations of data that can be stored and manipulated within a program. Every programming language has its own built-in data types and structures that differ from one to another.

According to the latest ECMAScript standard, there are nine data types in Javascript.

The Primitive Types

  • Number
  • String
  • BigInt
  • Symbol
  • Boolean

Arrays are defined as an ordered list of values in javascript. Where each value inside an array is called an element and each element has a specified index.

The indexing in an array starts from zero. This means if there are six elements in an array the index of the…

Arique Ahsan

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store