Learning Js in one hour is like day dream.

JAVASCRIPT was build around 10–14 days, So it’s natural have lots of bugs. JS has so many weird things. let’s list them down.

  1. Hoisting
  2. closure
  3. null
  4. this
  5. .1+.2

Hoisting was a by product. It something brings some weird bugs that is really heard to find out.

Closure is another thinks that is really hard to understand for new comer.

If you console log typeof null. It will show Object. But it is not. It’s a bug which never gone fixed for legacy purposes.

This keyword works lightly different in js. Which is a great source of confusion.

.1+.2 = 0.30000000000000004. Isn’t it wired?


React is a JavaScript based front end library. Other than root html element everything is being made with JavaScript.

React build a virtual dom. With this DOM react select which element should be rendered and which one should not.

React also has some kind of special thing which is called hooks. with the help of virtual dom hook identify exactly which element should be rendered.

  1. useEffect
  2. useState
  3. useRef
  4. useReducer
  5. useHistory

useEffect is used for fetching data, rendering thing for specific changes.

useState is used for storing data.

useRef is used for selecting specific element.

useReducer is used for storing data.

useHistory is used fot getting location.

The End!


Power of JavaScript
Power of JavaScript
Power of JavaScript

First of all, What is JavaScript?

JavaScript is a multi paradigm, single threaded, JIT, first class function, garbage collected programming language.

Hold on! You might ask what’s that ?

well, multi paradigm means the pattern of coding. In JS there have 3 types of programming pattern.

1. Procedural programming

2. Functional programming (current pattern of react components)

3. class based programming ( earlier pattern of react components)

Single threaded means programs are run one after another. JIT (just in time) compiled actually compensate single threaded functionality . JIT run the programs once and make a small executable file that can be execute any time.

First class…


return value of array methods

Probably array is the most widely used data structure in javaScript. Basically array is an object. Array has some built in methods.
Let’s talk about them.

map: map is a higher order function that takes a function as an input. This function loop through all array element and can do
some operations with each element. this returns a new array with new elements.
Return: returns a new array.
Time complexity: As it loop through all the elements of the array, So it’s time complexity is BIG O(n)

filter: Filter is another array method that takes an callback function and do some kind of condition. …

Shuvasish Talukder Shuvo

Front End Web Developer

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