javaScript interview questions you need to know

Truthy Values —

Falsy value —

Null vs undefined —

Double equal (==) vs Triple equal (===)

Map —

Filter & find —

Closure —

Scope —

JavaScript Global Variable —

JavaScript Objects —

Creating Objects in JavaScript

  1. By object literal
  2. By creating instance of Object directly (using new keyword)
  3. By using an object constructor (using new keyword)

JavaScript Array —

  1. By array literal
  2. By creating instance of Array directly (using new keyword)
  3. By using an Array constructor (using new keyword)

JavaScript Encapsulation —

  • Use var keyword to make data members private.
  • Use setter methods to set the data and getter methods to get that data.

--

--

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