Different 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...May 29, 2023·2 min read
JavaScript ObjectJS Objects are collections of key-value pairs. They are used to store, retrieve, and manipulate data in a structured way. Objects can be created in several different ways in jS Create Objects with object literal One of the most common ways to create ...Apr 19, 2023·2 min read
JS OperatorsThe operator is a special symbol used to perform operations on operands. Types of JS Operators Assignment Operator Arithmetic Operator Comparison Operator Logical Operator Assignment Operator: The assignment operator (+=) adds the value of vari...Apr 19, 2023·2 min read
JS VariablesThe variable is containers for storing the data values. Four ways to declare a JS Variable: * Var * Let * Const * Using nothing Rules of Variables - Variable names only start with Characters, underscore & $. -Variable names can be alphanumeric. ex:va...Apr 19, 2023·1 min read
JS FunctionsA set of code that you can use over again, rather than writing it out multiple times. Syntax : function functionname (arguments- its optional){ // code } Example: function number(moon, start){ console.log(moon + start) } number(55, 100) // h...Apr 19, 2023·1 min read
ArraysAn array is a special variable, which can hold more than one value. let arr = [34, 55, 88, "Blessie", null, false, {name : "object"}] Methods of arrays: * Lenth Property * Array.Push() * Array.Pop() * Array.shift() * Array.unshift() * Array.indexof...Apr 19, 2023·3 min read
"Loops" in JavaScriptThe loop is a programming way to run a set of code repeatedly until a certain condition is true. Different Kinds of Loops for loop while loop do/while loop for/of loop for/in loop For Loop For loop allows to iteration of a block of code and a ...Apr 17, 2023·2 min read