DSDewang Shekharinshekharcodes.hashnode.dev·Jan 14, 2023 · 2 min readFlow of code execution in JavaScriptEverything in JavaScript happens inside an "Execution Context”. Whenever a JavaScript program is run an execution context is created. var number=10; //line1 function add(n) //line2 { //line3 var result=n+n; //line4 return result; //l...00
DSDewang Shekharinshekharcodes.hashnode.dev·Jan 14, 2023 · 2 min readJavaScript FunctionsA JavaScript function is a block of code designed to perform a particular task. A JavaScript function is executed when "something" invokes it (calls it). JavaScript Function Syntax A JavaScript function is defined with the function keyword, followed ...00
DSDewang Shekharinshekharcodes.hashnode.dev·Jan 14, 2023 · 2 min readJavaScript Object and it’s methodJavaScript object is a non-primitive data-type that allows us to store multiple collections of data. Here is an example of a JavaScript object. // object const student = { firstName: 'ram', class: 10 }; Here, student is an object that stores...00
DSDewang Shekharinshekharcodes.hashnode.dev·Jan 13, 2023 · 3 min readJavaScript Array and it’s methodsThe Array object is used to store multiple values in a single variable. const cars = ["Hyundai", "Honda", "BMW", "Audi"]; Some Important Array Methods concat():- Joins arrays and returns an array with the joined arrays const arr1 = ["Cecilie", "Lon...00
DSDewang Shekharinshekharcodes.hashnode.dev·Jan 13, 2023 · 2 min readCSS Media queryMedia query is a CSS technique introduced in CSS3. It uses the @media rule to include a block of CSS properties only if a certain condition is true. Adding a Breakpoint We can add a breakpoint where certain parts of the design will behave differently...00