Day 35 of #100DaysOfCode – Functions, Recursion & Do-While Loop in JavaScript Today’s learning focused on some of the most important programming fundamentals in JavaScript: Key Learnings: Do-While Loop → Understanding how it executes the block at least once before checking the condition Functions in JavaScript → Structure, reusability, and clean code Arguments vs Parameters → How data is passed and handled Rest Parameters → Efficient way to work with variable number of inputs Recursion → Calling functions within themselves to solve repeating subproblems Hoisting → Variable Hoisting — behavior differences between var, let, and const Function Hoisting — how JavaScript moves function declarations to the top during execution Takeaway: Functions and recursion unlock powerful logic possibilities, and understanding hoisting helps avoid unexpected bugs. These concepts form the backbone of writing optimized and predictable JavaScript code. A big thanks to Harsh Vandana Sharma from Sheryians Coding School and Sheryians Coding School Community for making function mechanics and hoisting concepts easy to understand with practical examples. #100DaysOfCode #JavaScript #Functions #Recursion #WebDevelopment #CodingJourney #Frontend
Mastering JavaScript Fundamentals with #100DaysOfCode
More Relevant Posts
-
🚀 Day 35 - Deep Dive into Loops | JavaScript Today’s session took our JavaScript journey to the next level! We explored advanced looping concepts through Level-2 problem-solving exercises, combining for, while, and user interactions with prompt(). 💡 Key Learnings: 🔹 Strengthened logical thinking through real-world problems. 🔹 Broke down complex tasks into smaller, manageable steps. 🔹 Wrote dynamic code that interacts with user input. 🔹 Used loops and conditionals to generate specific outputs and patterns. 🧠 Harsh Bhaiya guided us to approach each challenge strategically first understanding the problem, visualizing loop flow, and then crafting efficient solutions. His advice reminded us that true learning happens when we struggle, reason, and solve independently. Each question solved today added to my confidence and made me appreciate how loops truly power logic in programming. Feeling proud, prepared, and excited to take on even tougher challenges ahead! 💪 📚 Student at: Sheryians Coding School #JavaScript #WebDevelopment #CodingJourney #LearningEveryday #SheryiansCodingSchool #ProblemSolving
To view or add a comment, sign in
-
-
I used to think functions were just a simple way to wrap code. I was wrong—they're the key to writing truly clean, reusable code. Following up on my last post about my practice landing page (two weeks ago!), I spent the past few weeks diving deep into JavaScript functions. My biggest moment? Function Scope! It’s basically a protective bubble. Any variables defined inside the function stay locked inside. This focus on isolation is huge for building reliable code and is a core part of the DRY (Don't Repeat Yourself) principle. Learning functions feels like unlocking the real power of JavaScript. Excited to dive into objects next! What was the first JavaScript concept that truly made you go, "Aha!"? Sheryians Coding School #JavaScript #WebDevelopment #CodingJourney #Functions #FrontendDev
To view or add a comment, sign in
-
-
Day 32 — Loops & Conditional Logic in JavaScript | 2.0 Job-Ready AI-Powered Cohort Sheryians Coding School 🚀 Today was all about building strong control-flow logic in JavaScript: 🟡 Truthy & Falsy Values Falsy → 0, "", null, NaN, undefined, false, document.all Everything else is Truthy ✅ 🧠 Conditional Statements if, else, if-else, else-if switch Ternary Operator for compact logic 🔁 Loops for loop basics & patterns ⛔ Loop Control Statements break — exit loop continue — skip to next iteration Understanding these deeply helps write cleaner, efficient control flow and decision-making logic in JS 💡 #JavaScript #WebDevelopment #Frontend #ControlFlow #SheryiansCodingSchool #DeveloperJourney
To view or add a comment, sign in
-
-
𝗗𝗮𝘆 𝟯𝟵: From Object Internals & this Keyword to Asynchronous JavaScript! 🤯 Today's session at the AI Powered Cohort was one of the most critical yet. We tackled some of the most powerful (and notoriously tricky) concepts in JavaScript. A huge thank you to Harsh Vandana Sharma and Sheryians Coding School for navigating us through this! Here's a breakdown of what we covered: 𝗢𝗯𝗷𝗲𝗰𝘁 𝗜𝗻𝘁𝗲𝗿𝗻𝗮𝗹𝘀: We went beyond just using objects and learned how they truly work 𝗦𝘁𝗼𝗿𝗮𝗴𝗲: How objects are stored by reference in memory (unlike primitive types). 𝗜𝘁𝗲𝗿𝗮𝘁𝗶𝗼𝗻: How to traverse the keys of an object (e.g., using for...in). Arrays as Objects: The "aha!" moment that arrays are just a special type of object with numbered keys. 𝗔𝘀𝘆𝗻𝗰𝗵𝗿𝗼𝗻𝗼𝘂𝘀 𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁 (𝗧𝗶𝗺𝗶𝗻𝗴 𝗘𝘃𝗲𝗻𝘁𝘀): We took our first step into async programming! 𝘀𝗲𝘁𝗧𝗶𝗺𝗲𝗼𝘂𝘁(): To delay the execution of a function. 𝘀𝗲𝘁𝗜𝗻𝘁𝗲𝗿𝘃𝗮𝗹(): To run a function repeatedly at a specific interval. 𝗰𝗹𝗲𝗮𝗿𝗧𝗶𝗺𝗲𝗼𝘂𝘁() & 𝗰𝗹𝗲𝗮𝗿𝗜𝗻𝘁𝗲𝗿𝘃𝗮𝗹(): The crucial methods for stopping our timers and preventing memory leaks. 𝗔𝗱𝘃𝗮𝗻𝗰𝗲𝗱 𝗢𝗯𝗷𝗲𝗰𝘁 𝗢𝗽𝗲𝗿𝗮𝘁𝗶𝗼𝗻𝘀: We learned how to control and manipulate objects with precision. 𝗢𝗯𝗷𝗲𝗰𝘁.𝗳𝗿𝗲𝗲𝘇𝗲() & 𝗢𝗯𝗷𝗲𝗰𝘁.𝘀𝗲𝗮𝗹(): To make objects immutable or prevent new properties. 𝗗𝗲𝘀𝘁𝗿𝘂𝗰𝘁𝘂𝗿𝗶𝗻𝗴: The modern, clean syntax for extracting properties from objects and arrays. 𝗢𝗯𝗷𝗲𝗰𝘁 𝗠𝗲𝘁𝗵𝗼𝗱𝘀 & 𝘁𝗵𝗶𝘀 𝗞𝗲𝘆𝘄𝗼𝗿𝗱: We tackled the infamous this keyword, understanding how its value is determined by the context in which a function is called. 𝗣𝗿𝗮𝗰𝘁𝗶𝗰𝗮𝗹 𝗔𝗽𝗽𝗹𝗶𝗰𝗮𝘁𝗶𝗼𝗻: We didn't just learn theory! We immediately applied all these concepts by solving a long list of practical questions (as seen in the screenshot!). This really helped solidify everything from object creation to setTimeout. Understanding the this keyword and timing events feels like unlocking a new level in development. #Day39 #CodingJourney #AIpoweredCohort #JavaScript #AsyncJS #setTimeout #thisKeyword #Objects #WebDevelopment #Programming #SheryiansCodingSchool #HarshVandanSharma
To view or add a comment, sign in
-
-
Day 33 — Loops & Conditions Practice | 2.0 Job-Ready AI-Powered Cohor Sheryians Coding School🚀 Today was all about hands-on coding with JavaScript loops & conditionals. Practiced real logic-building exercises like: ✅ Print numbers 1 to 10 ✅ Print even numbers using loops + condition ✅ Print numbers 10 to 1 (reverse loop) ✅ Print "YES" 5 times using a loop ✅ Ask a number → check positive or negative ✅ Ask user's age → check voting eligibility ✅ Multiplication table of 5 using loop ✅ Understand & handle edge cases with if-else The more I practice these logic patterns, the more comfortable I get with problem-solving in JavaScript 💪 #JavaScript #WebDevelopment #Frontend #CodingPractice #SheryiansCodingSchool #100DaysOfCode #DeveloperJourney
To view or add a comment, sign in
-
-
Day 39 of Cohort 2.0 🚀 Today’s session was all about diving into Objects in JavaScript and applying concepts through practical problem-solving. 💻 Here’s what I learned today: 🔹 Objects in JavaScript → Store data in key-value pairs for structured and organized coding 🔹 Accessing & Modifying Object Properties → Learn how to read, update, and delete data dynamically 🔹 Functions + Arrays + Objects Practice → Strengthened logic by solving real-world coding problems combining all three concepts ✨ Key takeaway: Understanding how to work with objects and integrating them with arrays and functions makes JavaScript code more powerful, modular, and efficient. Sheryians Coding School #sheryianscodingschool #cohort2 #learningjourney #dailyupdates #JavaScript #WebDevelopment #Frontend
To view or add a comment, sign in
-
-
🚀 Learning JavaScript: Practicing “for loops”! Today, I worked on different examples using for loops in JavaScript — a powerful tool for repeating tasks efficiently. Here’s what I explored 👇 💡 Tasks I completed: 1️⃣ Printed even numbers from 2 to 20 2️⃣ Printed odd numbers from 1 to 19 3️⃣ Calculated the square of numbers from 1 to 5 4️⃣ Found the sum of numbers from 1 to 10 5️⃣ Calculated the product of numbers from 1 to 5 6️⃣ Printed the cube of numbers from 1 to 5 7️⃣ Displayed numbers from -5 to 5 🧠 This exercise helped me understand how iteration, increment, and logical conditions work together in JavaScript loops. 🌱 Every small project like this helps strengthen my programming logic and problem-solving skills! #JavaScript #CodingJourney #ForLoop #WebDevelopment #100DaysOfCode #FrontendDevelopment #LearnToCode
To view or add a comment, sign in
-
Day 7 of Learning JavaScript from Sheryians Coding School Today, I have learned about loops, recursion, and functions. do...while: Executes the code inside the "do" block at least once and then checks the condition in "while". The loop continues based on the condition. Recursion: A function calling itself is known as recursion. It continues until a specific condition is met. Loop Control: continue: Skips the current iteration of the loop and moves to the next one. Functions: A function does not execute immediately; it runs only when called. A function can be called multiple times. Arguments: Used to access values that are passed when the function is called. Hoisting in Functions: Functions can be accessed or called even before they are declared. #JavaScript #WebDevelopment #CodingJourney #LearningWithSheryians #ProgrammingConcepts
To view or add a comment, sign in
-
🚀 #Day27 #Cohort2.0| Sheryians Coding School| #Javascript |#part3 Today’s session was about JavaScript concepts that form the real foundation of programming logic. ✅Here’s a quick summary of what I learned today 👇 1️⃣ Variables – var, let, and const 🔸 var is function-scoped (the old way), 🔸 while let and const are block-scoped 🔸 value is fixed in const (no change once declare) 🔸In let value can be re-declare and change 2️⃣ Console Methods Tried out several console functions: 🔸console.log() for normal output 🔸console.info() for informational messages 🔸console.warn() for warnings ⚠️ 🔸console.error() for errors ❌ 🔸console.table() for visualizing data neatly in tables 🔸console.dir() for seeing the structure of objects clearly 3️⃣ Prompt & Alert 🔸alert() ->for showing messages 🔸prompt() -> for taking quick input from the user. 4️⃣ Strings 🔸 Denoted by " ", ' ' 🔸" no. + any character/special symbol " -> " " string ✅slice() ->to extract a part of the string ✅split() ->to break text into arrays ✅replace() & replaceAll-> to change specific parts ✅includes() -> to check if a word exists inside a string 5️⃣ Template Strings (Template Literals) Used backticks ` ` instead of quotes to create cleaner and dynamic strings. The best part? You can directly use variables inside like this: `Hello ${name}, welcome back!` ✨ Every session in Cohort 2.0 is helping me sharpen my basics and think like a real developer - step by step. Learning how these small concepts connect to build bigger projects is truly satisfying. Thank you Harsh Vandana Sharma bhaiya for the wonderful lecture. #JavaScript #WebDevelopment #LearningJourney #Cohort2_0 #FrontendDevelopment
To view or add a comment, sign in
-
-
𝗗𝗮𝘆𝘀 𝟮𝟵 - 𝟯𝟮: Mastering JavaScript Logic, Operators, and Control Flow 💡🔄 The last four days of the AI Powered Cohort, led by Harsh Vandana Sharma at Sheryians Coding School, have been dedicated to mastering the logic and structure that make JavaScript programs run. We've conquered everything from fundamental Operators to essential Control Flow mechanisms. Here's a breakdown of the key concepts covered: 𝗢𝗽𝗲𝗿𝗮𝘁𝗼𝗿 𝗗𝗲𝗲𝗽 𝗗𝗶𝘃𝗲: We explored the tools that handle calculations and comparisons, including: Arithmetic (+, -, *, /, %) and Assignment (=, +=, -=). Comparison (<, >, <=, >=, ==, ===) and Logical (&&, ||, !) operators. 𝗧𝗲𝗿𝗻𝗮𝗿𝘆 𝗢𝗽𝗲𝗿𝗮𝘁𝗼𝗿: The concise way to write simple if/else statements. 𝗔𝗱𝘃𝗮𝗻𝗰𝗲𝗱 𝗢𝗽𝗲𝗿𝗮𝘁𝗼𝗿𝘀: We learned about Nullish Coalescing Operator ($\text{??}$) for handling null or undefined values gracefully, and Optional Chaining ($\text{?.}$) for safely accessing nested object properties. 𝗩𝗮𝗿𝗶𝗮𝗯𝗹𝗲 𝗛𝗼𝗶𝘀𝘁𝗶𝗻𝗴: Gained a clear understanding of how JavaScript moves variable and function declarations to the top of their scope during compilation. 𝗖𝗼𝗻𝘁𝗿𝗼𝗹 𝗙𝗹𝗼𝘄 𝗘𝘀𝘀𝗲𝗻𝘁𝗶𝗮𝗹𝘀: We transitioned into the backbone of any programming logic: 𝗖𝗼𝗻𝗱𝗶𝘁𝗶𝗼𝗻𝗮𝗹 𝗦𝘁𝗮𝘁𝗲𝗺𝗲𝗻𝘁𝘀: In-depth discussion of if, else if, and switch for decision-making. 𝗟𝗼𝗼𝗽𝘀: Mastered different types of loops, for, while, do-while, for-each and for-in to automate repetitive tasks. 𝗥𝗲𝗰𝘂𝗿𝘀𝗶𝗼𝗻: Introduced the powerful concept of recursion, where a function calls itself to solve a problem. The highlight was the dedicated class time spent solving and reviewing the assignment. This hands-on problem-solving, along with tackling numerous complex questions, truly solidified these concepts. Confidence in writing efficient, logical JS code is climbing! Ready to apply these skills. #Day29 #Day30 #Day31 #CodingJourney #AIpoweredCohort #JavaScript #JSOperators #ControlFlow #Loops #Recursion #WebDevelopment #SheryiansCodingSchool
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