It’s been a month since I joined the Chai Aur Code cohort by Hitesh Choudhary and Piyush Garg, and I have to say — the way Hitesh sir explains concepts makes even the basics feel powerful and practical. Day 17 — JavaScript Essentials Part 1 Today wasn’t just about syntax, it was about understanding how JavaScript actually behaves behind the scenes. Started with console methods and realized how much more there is beyond just console.log — grouping logs, measuring performance with console. time, and even differentiating between warnings and errors. Then came variables, and this part really changed how I think: Instead of blindly using var, the idea is to default to const, and only use let when changes are expected. It’s a small shift, but it makes code more predictable and less prone to bugs. Also understood something subtle but important: `const` doesn’t make objects immutable; it only locks the reference. You can still change properties inside arrays and objects. The concept of scope hit hard today: var can leak outside blocks, which can create unexpected bugs. let and const fix this with proper block scoping. Strings were another interesting area: They look simple, but methods like slice, split, join, indexOf, and padStart show how powerful they are. Also learned that strings are immutable every operation creates a new value instead of modifying the original. One thing that stood out: null vs undefined isn’t just theory it's about intent vs. absence and how JavaScript handles memory and garbage collection. Ending the day with a simple thought: JavaScript is not hard, but it is very precise. Small misunderstandings can lead to big bugs. Still early in the journey, but slowly starting to see how things connect. Thank you Hitesh Choudhary sir, Piyush Garg sir, Anirudh Jwala sir for the support #JavaScript #WebDevelopment #CodingJourney #LearnToCode #100DaysOfCode #Developers #Programming #TechCareers
Hitesh Choudhary's JavaScript Essentials with Hitesh Choudhary
More Relevant Posts
-
Today I practiced the Best Time to Buy and Sell Stock problem in JavaScript. This problem looks simple at first, but it is a great exercise for improving algorithmic thinking. The goal is to track the best moment to buy and then update the maximum profit while scanning the array once. What this reminded me: understanding the reason behind a pattern is more important than just memorizing solutions. I’m sharing more JavaScript pattern exercises here: GitHub: https://lnkd.in/ej4fNeZs #JavaScript #Coding #Algorithms #ProblemSolving #SoftwareEngineer #GitHub #LearningInPublic
To view or add a comment, sign in
-
-
🚀 Day 5/100 — #100DaysOfCode Today was all about strengthening my JavaScript fundamentals 💻 Instead of rushing ahead, I took time to revise the core concepts that form the backbone of programming. 📚 What I revised: 🧠 Core Concepts • Variables & Declarations • Data Types & JavaScript Type System ⚡ Logic Building • Operators • Control Flow (if-else, conditions) 🔁 Iteration • Loops (for, while) ⚙️ Functions • Writing reusable and structured code 📦 Data Structures • Arrays — handling collections of data • Objects — organizing data in key-value form 💡 Key Insight: Strong fundamentals make complex problems easier to solve. 🔥 Day 5 complete. Staying consistent and building step by step. #JavaScript #WebDevelopment #CodingJourney #BuildInPublic #Consistency
To view or add a comment, sign in
-
-
🚀 Day 15 of #100DaysOfCode Today was all about mastering two powerful JavaScript concepts that make code cleaner, smarter, and more expressive: 👉 Array Destructuring 👉 Spread Operator 💡 1. Array Destructuring No more messy indexing! You can unpack values from arrays in a clean way: const arr = [10, 20, 30]; const [a, b, c] = arr; console.log(a, b, c); // 10 20 30 You can even skip values or set defaults: const [x, , z = 50] = [5, 15]; console.log(x, z); // 5 50 ⚡ Cleaner code = better readability. 💡 2. Spread Operator (...) This tiny syntax unlocks big power 💥 👉 Copy arrays: const arr1 = [1, 2, 3]; const arr2 = [...arr1]; 👉 Merge arrays: const a = [1, 2]; const b = [3, 4]; const merged = [...a, ...b]; 👉 Add elements easily: const nums = [1, 2, 3]; const updated = [...nums, 4]; 🔥 No loops. No push chaos. Just elegance. ✨ Key Takeaway: Destructuring simplifies access. Spread operator simplifies manipulation. Together? They make your JavaScript feel like magic 🪄 📈 Consistency is the real superpower. Showing up every day. Learning every day. #JavaScript #WebDevelopment #CodingJourney #100DaysOfCode #LearnInPublic #Developers #LearningInPublic Sheryians Coding School Sheryians Coding School Community
To view or add a comment, sign in
-
-
Completed Episode 9 " libuv and Event loop " of Namaste Node.js season -1 #NamasteNodejs by Akshay Saini 🚀 learned Node.js handles asynchronous operations efficiently using libuv and the event loop 🔥 libuv libuv enables Node.js to handle asynchronous operations. It powers the event loop and thread pool to achieve non-blocking behavior. 🔁 Event Loop Continuously checks the call stack and callback queues. Executes callbacks only when the call stack is empty. 📦 Callback Queue Stores callbacks of completed asynchronous tasks. The event loop pushes them to the call stack for execution. 🧵 Thread Pool Handles heavy operations like file system and DNS tasks. Prevents blocking the main thread by running tasks in background threads. ⚡ Non-Blocking I/O Async tasks are offloaded to libuv or the OS. JavaScript continues execution without waiting for results. 🔄 Event Loop Phases ⏱️ Timers Phase Executes callbacks of scheduled timers. 📡 Poll Phase (Most Important) Handles I/O callbacks. Also waits for new tasks if none are available. ⚡ Check Phase Executes immediate callbacks scheduled after the poll phase. ❌ Close Phase Handles cleanup callbacks. ⚠️ Microtasks (High Priority) 🔹 process.nextTick() Executed immediately after current execution. Has the highest priority. 🔹 Promises Executed after process.nextTick but before event loop phases. 🔁 Microtask Rule All microtasks are executed before moving to the next phase. #NodeJS #JavaScript #BackendDevelopment #WebDevelopment #FullStackDeveloper #SoftwareEngineering #Programming #Coding #Developers #Tech #AsyncProgramming #EventLoop #libuv #NonBlocking #SystemDesign #LearnToCode #CodingLife #DeveloperLife #TechCommunity #100DaysOfCode #CodeNewbie #DevCommunity #ProgrammingLife #SoftwareDeveloper #Engineering #TechEducation #CSConcepts #InterviewPrep #CodingInterview #LearnJavaScript
To view or add a comment, sign in
-
-
In the last class, I got a complete overview of TypeScript and learned some very useful concepts that help in writing clean and structured code. Here’s what I learned: 1. Working with Deno 2. Understanding data types, functions, arrays & objects 3. Using enums and tuples 4. Type aliases & interfaces for better structure 5. Type narrowing & union types for smarter logic 6. Handling nullable values & nullish coalescing 7. Writing flexible code using generics Each concept is helping me think more clearly while coding and avoid common JavaScript mistakes. Excited to start applying these in real projects and keep improving every day Thanks to Hitesh Choudhary Sir, Piyush Garg Sir and Chai Aur Code #TypeScript #WebDevelopment #LearningJourney #FrontendDeveloper #Coding
To view or add a comment, sign in
-
🚀 Weekly Progress Update Last week was all about strengthening my JavaScript fundamentals and improving problem-solving skills. Here’s what I worked on: ✅ Deep dive into Event Handling Event Bubbling Event Capturing Event Delegation ✅ Practiced and solved 40+ string-based problems to improve logic building ✅ Gained hands-on experience with: DOM Manipulation BOM (Browser Object Model) ✅ Built a form project applying real-world concepts of events, DOM, and validation This week helped me better understand how JavaScript works behind the scenes and how to write cleaner, more efficient code. Looking forward to learning more and building stronger projects ahead 💻🔥 #JavaScript #WebDevelopment #LearningJourney #FrontendDeveloper #Coding #100DaysOfCode
To view or add a comment, sign in
-
✨ Day 7 – Loops finally made sense! I used to feel confused seeing different loops in JavaScript… "for", "for...of", "for...in" — all looked similar at first. But today, after practicing, something finally clicked 💡 Now I understand: • "for" → when I know how many times to run • "for...of" → to get values from arrays • "for...in" → to get indexes or object keys Small step, but a big clarity moment for me. Still learning, still improving… and staying consistent 🔥 #Day7 #JavaScript #Loops #LearningJourney #Coding #Consistency
To view or add a comment, sign in
-
𝐓𝐡𝐞 𝐜𝐚𝐥𝐥 𝐬𝐭𝐚𝐜𝐤 𝐡𝐚𝐬 𝐧𝐨 𝐩𝐚𝐭𝐢𝐞𝐧𝐜𝐞. 𝐈𝐭 𝐞𝐱𝐞𝐜𝐮𝐭𝐞𝐬 𝐞𝐯𝐞𝐫𝐲𝐭𝐡𝐢𝐧𝐠 — 𝐢𝐧𝐬𝐭𝐚𝐧𝐭𝐥𝐲, 𝐫𝐮𝐭𝐡𝐥𝐞𝐬𝐬𝐥𝐲, 𝐢𝐧 𝐨𝐫𝐝𝐞𝐫. So what happens when you need a 𝐝𝐞𝐥𝐚𝐲? That's where I hit a wall. If JavaScript is single-threaded and the call stack never pauses — how does '𝐬𝐞𝐭𝐓𝐢𝐦𝐞𝐨𝐮𝐭' even work? Turns out, it doesn't live in JavaScript at all. 𝐖𝐞𝐛 𝐀𝐏𝐈𝐬 — 𝐬𝐞𝐭𝐓𝐢𝐦𝐞𝐨𝐮𝐭, 𝐟𝐞𝐭𝐜𝐡( ), 𝐃𝐎𝐌 𝐞𝐯𝐞𝐧𝐭𝐬, 𝐥𝐨𝐜𝐚𝐥𝐒𝐭𝐨𝐫𝐚𝐠𝐞 — are gifts from the browser, not the language. The browser quietly hands them off, runs them in the background, then places the result into a 𝐂𝐚𝐥𝐥𝐛𝐚𝐜𝐤 𝐐𝐮𝐞𝐮𝐞 . And here's the elegant part: The 𝐄𝐯𝐞𝐧𝐭 𝐋𝐨𝐨𝐩 sits there, watching. The moment the call stack is empty, it picks up the waiting callback functions and pushes it in. That's it. No magic. Just a disciplined handoff between three moving parts. JavaScript doesn't wait — but the browser builds the patience "around" it. 𝐓𝐚𝐤𝐞𝐚𝐰𝐚𝐲𝐬 : → 𝐓𝐡𝐞 𝐜𝐚𝐥𝐥 𝐬𝐭𝐚𝐜𝐤 𝐞𝐱𝐞𝐜𝐮𝐭𝐞𝐬 𝐟𝐚𝐬𝐭. 𝐍𝐞𝐯𝐞𝐫 𝐚𝐬𝐬𝐮𝐦𝐞 𝐢𝐭 𝐰𝐚𝐢𝐭𝐬. → 𝐖𝐞𝐛 𝐀𝐏𝐈𝐬 𝐚𝐫𝐞 𝐛𝐫𝐨𝐰𝐬𝐞𝐫-𝐩𝐨𝐰𝐞𝐫𝐞𝐝, 𝐚𝐜𝐜𝐞𝐬𝐬𝐞𝐝 𝐯𝐢𝐚 𝐭𝐡𝐞 𝐠𝐥𝐨𝐛𝐚𝐥 "𝐰𝐢𝐧𝐝𝐨𝐰" 𝐨𝐛𝐣𝐞𝐜𝐭. → 𝐓𝐡𝐞 𝐞𝐯𝐞𝐧𝐭 𝐥𝐨𝐨𝐩 𝐨𝐧𝐥𝐲 𝐚𝐜𝐭𝐬 𝐰𝐡𝐞𝐧 𝐭𝐡𝐞 𝐜𝐚𝐥𝐥 𝐬𝐭𝐚𝐜𝐤 𝐢𝐬 𝐜𝐥𝐞𝐚𝐫. #JavaScript #SoftwareEngineering #DeveloperJourney #LearningInPublic #Programming #TechCommunity #WebDevelopment
To view or add a comment, sign in
-
-
hi connections Day 13 of 30: Mastering the "Sleep" Function in JavaScript! Today’s LeetCode challenge was a deep dive into asynchronous timing. ⏳ The Goal: Write an asynchronous function that sleeps for a specified number of milliseconds. The Lesson: JavaScript is single-threaded, so we can't just "pause" the whole engine. Instead, we use Promises and setTimeout to tell the engine: "Go do other tasks, and come back to this specific line of code after X milliseconds." This is a vital pattern for: ✅ Rate-limiting API calls to stay within quota. ✅ Adding intentional delays for better UI/UX (like loading states). ✅ Polling a server for updates at specific intervals. Understanding the difference between blocking and non-blocking code is what makes for a smooth, high-performance application! #JavaScript #WebDevelopment #AsyncProgramming #LeetCode #CodingChallenge #Day13 #SoftwareEngineering #FrontendTips
To view or add a comment, sign in
-
-
Building Subsets on Day 226 Today Today is day 226 of my coding journey and I focused on solving the Power Set problem using JavaScript. This involves finding every possible combination of elements from a given array including the empty set. I used the Backtracking technique to explore all paths. The logic starts with an empty array and then adds elements one by one. After exploring a specific path I used the pop method to remove the last element. This is the unchoose step that allows the code to go back and try a different number. One important thing I practiced today is how to use the spread operator to create a copy of the current path before adding it to the result. This ensures that the final list contains the correct values instead of just references to an empty array. Understanding how recursion builds a state space tree makes solving these types of problems much clearer. I solved this LeetCode question today: LeetCode 78 Subsets #DSAinJavaScript #365daysOfCoding #JavaScriptLogic #LeetCode #BacktrackingAlgorithms #Recursion #ProblemSolving #CodingChallenge #WebDevelopment #SoftwareEngineering #DataStructures #LogicBuilding #TechLearning #JSAlgorithms #SoftwareDevelopment #CodingSkills #DailyCoding #ArrayManipulation #FullStackDeveloper #ProgrammingJourney
To view or add a comment, sign in
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development