What I learn today.

Photo by Safar Safarov on Unsplash


This keyword holds the reference of an object that defines the current line of execution.


The new keyword is used to create an instance of an object, Its create a new empty object.


Mainly there are two types of scopes in javascript, 1. Local Scope 2.Global Scope
In javascript, every function creates a new scope. A scope defines the accessibility of variables. The variable that defines the inside of a function is known as the Local variable of that function. A local variable has a functional scope that means the variable can be accessible only inside of a function.
A variable that declares outside of a function that is a global variable. A global variable can access from anywhere in the program.

== vs ===

== is compare two values where === compare two values as well as datatype.


The closure is the combination of a function that bundled together with references of its surrounding state. In other words, closure gives access of the outer function scope from the inner function.


It is a technique where a function call over and over from that function itself until it reached the result.




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

3 JavaScript Array Methods Every Developer Should Know

Simple JavaScript templates and how to render them.

Fixing Overly Aggressive Optimization with Terser

React Server Side Rendering (SSR) Boilerplate.

Enjinstarter: IDO Allocation, Tiers & Staking Guide

Level up Mac Terminal Like Pro

Purescript Effects map 1:1 to global state and process-wide coupling

Native vs Hybrid vs Cross Platform Technologies for Mobile Apps

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
Md Readwan

Md Readwan

More from Medium

Enjoy Your Wonderful Day In Every Way

Beautiful nights and me:

3 Lessons I Learned as a Beginner Copywriter Writing Her First Sales Letter

Journal Post 1