JSJeevika Sirwaniintechbyjeevika.io·Jan 29, 2023 · 2 min readJavaScript L-3Block Scope. "let" and "const" are BLOCK scoped. "var" is FUNCTION scope. { let firstName="ABC"; console.log(firstName); } //here let can only be inside that block //if i write print statement outside block and not inside block then it will no...00
JSJeevika Sirwaniintechbyjeevika.io·Jan 28, 2023 · 2 min readJavaScript L-2Functions in javascript. Functions are used to execute any task that repeats itself. //Declare Function function singHppyB(){ console.log("Happy Birthday!") } // Call Function singHppyB(); //Storing return value in new variable and calling it f...00
JSJeevika Sirwaniintechbyjeevika.io·Jan 25, 2023 · 1 min readObject Destructuring.Object destructuring is an approach to access an object's properties. We use object destructuring because it dries our code by removing duplication.const band={ bandName:"Led", famousSong:"stairway to heaven", year:1996, anotherFamou...00
JSJeevika Sirwaniintechbyjeevika.io·Jan 25, 2023 · 1 min readJavaScript L-1Dot vs Bracket Operator. const people = { name: "J", age: 20, "people hobbies": ["guitar", "sleeping", "dancing", "music"] } //Dot Operator console.log(people.age); // but if there is space between names then. won't work so we use [] // e...00
JSJeevika Sirwaniintechbyjeevika.io·Dec 11, 2022 · 1 min readSELECTORS in CSSMultiple Selectors: Combining all the selectors under one branch, so that it gets easy to style them. If it has to share the same features between two attributes, we use this selector. [Multiple Selectors] Hierarchical Selectors: In this select...01M