SKSagar Kumarinjavascript-blog1.hashnode.dev00Template Literals in JavaScriptMar 20 · 5 min read · 1) Problems with Traditional String Concatenation Classic approach: const name = "Sagar"; const role = "Analyst"; const msg = "Hello " + name + ", you are an " + role + "."; Common issues: ReadabiliJoin discussion
SKSagar Kumarinjavascript-blog1.hashnode.dev00JavaScript ObjectsMar 17 · 3 min read · 1. What Objects Are and Why They Are Needed An object in JavaScript is a collection of key–value pairs used to store related data together. Example: Instead of storing separate variables for a person’Join discussion
SKSagar Kumarinjavascript-blog1.hashnode.dev00JavaScript Control Structures Mar 14 · 3 min read · 1. What Are Control Structures? Control structures allow a program to make decisions and execute different code depending on conditions. Example in real life: If it is raining → take an umbrella If Join discussion
SKSagar Kumarinjavascript-blog1.hashnode.dev00Javascript Array MethodsMar 14 · 2 min read · 1. Push() and pop() These methods add or remove elements from the end of an array.push() - Add element to the end let numbers = [1, 2, 3]; number.push(4); console.log(numbers); output: [1,2,3,4] 2. ShJoin discussion
SKSagar Kumarinjavascript-blog1.hashnode.dev00Understanding Variables and Data Types in JavaScriptMar 8 · 3 min read · 1) Ways to declare variables (scope & mutability) variable save in memory and we can use whenever we want to use. JavaScript has three keywords to declare variables, each with different behavior: let Join discussion