Pprathameshinprathameshsawant.hashnode.dev·Aug 31, 2022 · 2 min readImportant concepts in JavascriptScope Scope is a certain region of a program where a defined variable exists & can be accessed. Different types of scope are -> function scope and block scope. var is function scope. function fname() { // function scope } let & const are block scop...00
Pprathameshinprathameshsawant.hashnode.dev·Aug 31, 2022 · 2 min readDocument object Model in JavascriptDocument Object Model When a page is loaded, the browser creates the DOM for the web page. The DOM represents the document as a node tree, where each node represents each element of html. Document Object Model is an API that represents and interacts...00