BYblessie yinblessie-blog.hashnode.dev·May 29, 2023 · 2 min readDifferent b/w Real DOM & React DOMWhat is DOM? The( Document Object Model), represents the web page as a tree structure. Any piece of HTML that we write is added as a node, to this tree. With JavaScript, we can manipulate any of these nodes (HTML elements) and update their styles, an...01R
BYblessie yinblessie-blog.hashnode.dev·May 23, 2023 · 2 min readDestructuring in JavaScriptThe destructuring assignment syntax is a JS expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables. Object Destructuring let's see with examples: function index(){ function ...00
BYblessie yinblessie-blog.hashnode.dev·May 20, 2023 · 1 min readClosures in JavaScriptThe closure is a collection of functions with a lexical environment. Meaning of Lexical Environment/ Scoping The scope has the ability of function scope to access the variables from the parent scope. Here have some examples: First example: let a = 10...00
BYblessie yinblessie-blog.hashnode.dev·May 19, 2023 · 1 min readJavaScript HoistingIn JS any variables and functions trying to access before the declaration is known as Hoisting. Let's see the First example: 1 var num = 80 2 3 function declaration (){ 4 console.log("creative world"); 5 } 6 7 dec...00
BYblessie yinblessie-blog.hashnode.dev·May 18, 2023 · 2 min readJavaScript Execution ContextWhen the JavaScript code started to run then the Global Execution Context is created. Types of Phases in Execution Context The Execution context is created in two phases: Memory allocation Phase Code Execution phase Let's start with the following...01R