💻✨ 21 Days JavaScript Basics Challenge — Day 6 🚀 🫖 Learning from: Chai aur Code by Hitesh Choudhary 📘 Today’s Focus: 🔹 Functions in JavaScript 🔹 The this Keyword 🔹 Control Flow & Loops 🧩 What I learned today: ⭐ How to create and call functions in JavaScript ➡️ Function Declaration, Expression, and Arrow Functions ⭐ The role of the this keyword — how its value changes based on context ⭐ Control flow statements like ➡️ if, else if, else, switch ⭐ Looping structures: ➡️ for, while, do...while, and for...of 💡 Key Takeaways: ➡️ Functions make code reusable and modular 🔁 ➡️ this behaves differently in regular vs arrow functions ⚙️ ➡️ Loops and conditionals control the logic flow of every program 🎯 💾 Saved today’s code as 07_functions_controlflow_loops.js on GitHub 📂 #JavaScript #ChaiAurCode #CodingJourney #21DaysChallenge #LearningInPublic #WebDevelopment #CodeNewbie #JSBasics #Loops #Functions
More Relevant Posts
-
💻✨ 21 Days JavaScript Basics Challenge — Day 4 🚀 🫖 Learning from: Chai aur Code by Hitesh Choudhary 📘 Today’s Focus: 🔹 Strings & Numbers in JavaScript 🔹 Stack and Heap Memory 🧩 What I learned today: ⭐ How strings and numbers are stored and used in JavaScript ⭐ The difference between 𝐩𝐫𝐢𝐦𝐢𝐭𝐢𝐯𝐞 (𝐬𝐭𝐚𝐜𝐤) and 𝐧𝐨𝐧-𝐩𝐫𝐢𝐦𝐢𝐭𝐢𝐯𝐞 (𝐡𝐞𝐚𝐩) memory ⭐ Common string methods like: ➡️ .𝐭𝐨𝐔𝐩𝐩𝐞𝐫𝐂𝐚𝐬𝐞() .𝐭𝐨𝐋𝐨𝐰𝐞𝐫𝐂𝐚𝐬𝐞() .𝐬𝐥𝐢𝐜𝐞() .𝐬𝐮𝐛𝐬𝐭𝐫𝐢𝐧𝐠() .𝐭𝐫𝐢𝐦() .𝐫𝐞𝐩𝐥𝐚𝐜𝐞() ⭐ Common number methods like: ➡️ .𝐭𝐨𝐅𝐢𝐱𝐞𝐝() .𝐭𝐨𝐒𝐭𝐫𝐢𝐧𝐠() 𝐍𝐮𝐦𝐛𝐞𝐫() 𝐩𝐚𝐫𝐬𝐞𝐈𝐧𝐭() 𝐩𝐚𝐫𝐬𝐞𝐅𝐥𝐨𝐚𝐭() 💡 Key takeaway: ➡️ Stack memory stores simple values (like strings & numbers) ➡️ Heap memory stores complex values (like objects & arrays) 💾 Saved my notes and practice files on GitHub 📂 https://lnkd.in/g3wrwTTr credits : Abdul Hak 🤝 #JavaScript #ChaiAurCode #CodingJourney #21DaysChallenge #LearningInPublic #WebDevelopment #StackHeap #JSBasics
To view or add a comment, sign in
-
Leveling Up on Day 2 of JavaScript! 📈 We dove headfirst into the essentials today, moving from the why to the how of writing clean JavaScript. A huge shoutout to Harsh Bhaiya for breaking down complex ideas into simple, actionable steps! What I Learned & Practiced: The Essentials: How to get started, why JS is important, and how to link it using the <script> tag. Variable Declarations: Establishing best practices with let and const for better scope management. Browser Toolkit: Mastering console.log for debugging and using prompt/alert for basic user communication. Data Handling: Practicing essential String methods (slice, split, replace, includes)—these are critical for manipulating data from APIs or user inputs! The momentum is real! Excited to keep building on this strong base. #Day2 #JavaScript #JSFundamentals #WebDevelopment #CodingJourney #HarshBhaiya Sheryians Coding School Sheryians Coding School Community
To view or add a comment, sign in
-
-
I'm back with Day 2 of my JavaScript deep dive! 💻 Today's focus is on mastering Data Types and the Type System—the area where many subtle bugs in JS originate. This set of questions is key to understanding how JavaScript really works: Primitive vs. Reference data types (Why does changing one object change another?) Dynamic Typed Language (What this means for type checks) Truthy and Falsy (Essential for conditional logic) Quirks and Type Coercion (The "gotchas" every JS developer must know!) Mastering this ensures you can write predictable and robust code. I'm grateful to Sheryians Coding School, Cohort 2.0, for the guidance through these critical topics! What's the trickiest JavaScript coercion quirk you've run into? Share your experience below! 👇 Connect with me: My GitHub: https://lnkd.in/d7zWUeDG My X: https://lnkd.in/dn3yZDYY My Facebook: https://lnkd.in/dV3uHhZY #JavaScript #CodingFundamentals #DataTypes #TypeSystem #TypeCoercion #SheryiansCodingSchool
To view or add a comment, sign in
-
-
🚀 Day 13/25 – Daily Learning Challenge Today, I revisited three essential JavaScript concepts—map(), filter(), and reduce()—fundamental tools for writing clean, efficient, and modern code. 💡 Key Takeaways: ▪️map() – Transforms each element in an array and returns a brand-new array. ▪️filter() – Extracts elements based on specific conditions, making it perfect for data validation and cleanups. ▪️reduce() – A versatile function used for computing totals, aggregations, averages, and more. Mastering these higher-order functions significantly improves code readability, performance, and overall problem-solving efficiency. Revisiting them helped strengthen my core JavaScript fundamentals—especially useful for building scalable applications in React and modern JS ecosystems. Excited to keep the momentum going! 💪 #Day13 #MasaiVerse #DailyLearning #JavaScript #CodingPractice #TechLearning #GrowthMindset #KeepLearning Masai
To view or add a comment, sign in
-
🎯 Day 33 - Learning Loops in JavaScript Today's session was all about understanding how loops make our code more efficient and powerful by reducing repetition and improving logic flow. 💡 Key Learnings: for loop - runs code for a fixed number of times. while loop - continues as long as the condition is true. do...while loop - executes at least once before checking the condition. for...of loop - iterates over arrays and strings. for...in loop - iterates through object properties. Each loop serves a unique purpose, and together they make JavaScript more dynamic and versatile. Excited to keep exploring and sharpening my logical thinking every single day! 🚀 #Day33 #JavaScript #WebDevelopment #CodingJourney #FrontendDevelopment #SheryiansCodingSchool #LearningNeverStops
To view or add a comment, sign in
-
-
🚀 My Takeaways After Learning Asynchronous JavaScript After spending some time diving deep into asynchronous JavaScript, here’s what I’ve come to realize 👇 💡 In modern JavaScript development, understanding async behavior isn’t optional anymore — it’s essential. 🧠 JavaScript runs on a single thread, and without async operations, our apps would freeze every time we wait for an API call or heavy data processing. ⚙️ That’s where callbacks, promises, and async/await come in — they keep our code responsive, efficient, and user-friendly. #JavaScript #Programming #WebDevelopment #FrontendDevelopment #CodingJourney #LearnToCode #SoftwareEngineering #DeveloperCommunity #100DaysOfCode A quick example 👇
To view or add a comment, sign in
-
-
🔄 Day 163 of #200DaysOfCode After exploring advanced topics in JavaScript, I decided to slow down and revisit one of the most timeless logic challenges — reversing an array without using the built-in reverse() method. 🌱 It might seem like a simple exercise, but it teaches you something very powerful — how data moves in memory, how to swap values efficiently, and how small logic patterns build the foundation for solving complex problems later on. In JavaScript, it’s easy to rely on built-in functions, but when you write logic manually, you begin to understand the real mechanics behind how things work — and that’s what makes you a stronger developer. 💡 Problems like these remind me that mastery isn’t about how many advanced concepts you know, but how deeply you understand the basics. 🔁 Even experienced developers revisit their roots from time to time — because fundamentals never go out of style. Keep learning. Keep building. Keep evolving. #JavaScript #CodingChallenge #BackToBasics #163DaysOfCode #LearnInPublic #WebDevelopment #DeveloperMindset #ProblemSolving #CodingJourney
To view or add a comment, sign in
-
-
As I continue learning JavaScript, I’m diving deeper into its core concepts. Today, I explored Hoisting, and it helped me understand how JavaScript handles code behind the scenes. What I learned about Hoisting: ~JavaScript moves variable and function declarations to the top of their scope before executing the code. This means: ~Functions can be called before they are declared ~Variables are initialized with undefined during the compilation phase ~Understanding execution context is crucial for clean and predictable code Why this concept is important? Hoisting may seem simple, but it forms the foundation of how JavaScript interprets code. It improves my understanding of: ~Execution phases ~Scope behavior ~Memory allocation ~Writing more structured and bug-free code My learning journey I’m currently focusing on strengthening my fundamentals concepts like: ~Hoisting ~Scope ~Closures ~Event loop ~DOM manipulation These basics are helping me build a strong foundation before moving toward frameworks and advanced topics. Every concept I learn brings me closer to writing cleaner, more efficient JavaScript. #JavaScript #LearningJourney #WebDevelopment #ProgrammingBasics #FrontendDeveloper
To view or add a comment, sign in
-
Day 8 of #30DaysOfJavaScript: Counting Function Arguments with Rest Parameters! 🎯 Solved an interesting and fundamental problem today—writing a function that returns the count of arguments passed to it. This challenge sharpened my understanding of JavaScript’s rest parameters and how they simplify working with variable numbers of arguments. Here’s my solution: javascript var argumentsLength = function(...args) { return args.length; }; Key insights gained: rest parameters allow capturing an indefinite number of arguments in an array-like structure. This approach is cleaner and more intuitive than using the legacy arguments object. Mastering these basics is essential for writing flexible, reusable functions in JavaScript. Excited to keep progressing on this learning journey and uncovering more of JavaScript’s powerful features every day! If you’re also working through JavaScript fundamentals or coding challenges, let’s connect and share tips. #JavaScript #RestParameters #CodingChallenge #LeetCode #WebDev #LearningByDoing #SoftwareDevelopment
To view or add a comment, sign in
-
-
I Finally Understood Something Every JavaScript Learner Struggles With The REAL difference between var, let, and const — and why it matters. Today I studied variables in JavaScript, and honestly… I didn’t expect such small keywords to make such a BIG difference in how code works. Here’s the simplest comparison of them : var = Old - Function-scoped - Can be redeclared - Can be updated - Hoisted (but not safely) let – The modern choice - Block-scoped - Can be updated - Cannot be redeclared in the same scope Good for values that will change const – The unchangeable constant - Block-scoped - Cannot be updated - Cannot be redeclared Best for fixed values Why this actually matters Choosing the right one means: Cleaner code Fewer errors Better debugging More control over your logic Learning this today really boosted my understanding of how JavaScript works — excited to keep improving! If you're also learning JavaScript, let’s connect and grow together! #JavaScript #WebDevelopment #FrontendDevelopment #CodingJourney #LearnToCode #ProgrammingBasics #JSVariables #TechLearning #DevelopersCommunity #CodeNewbie #RoshaanLearnsCode
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
Visual learning is great .