There are some JavaScript topics which sometimes makes new developer confused. Closures, Hoisting & Scope are some of those tricky parts.
I’ll tell what I’ve learn so far…

Scope…

Global Scope

We all know what variables are. I found scope by finding the answer of a question, “In where my variables are available to me?”…

we can simply write a variable(not in a function or in methods). and try it out in console that is called Global scope. which means you can access it from any where in your application.

const name = ‘Nayeem’;

let lastName= ‘Uddin’;

var uses =…

Nayeem Uddin

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