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
Mastering Loops & Conditional Logic in JavaScript with Sheryians Coding School
More Relevant Posts
-
Today, I learned that in JavaScript, NaN is a number that isn't equal to itself, typeof null is an object (don't ask), and can someone please explain to me how 0.1 + 0.2 decided to become 0.30000000000000004? 🤔 Also, addition concatenates strings, while subtraction actually calculates! 🤦♂️ Everything from a prompt() is a string, so be careful with those data types! Successfully conquered yesterday's tasks in Sheryians Coding School Cohort 2.0. The code runs, but the confusion is real. 😂 #JavaScript #JSDev #CodingLife #SheryiansCohort2 #WebDevelopment
To view or add a comment, sign in
-
Day 28 - Cohort 2.0! Sheryians Coding School Understanding JavaScript Data Types. This session was all about exploring the core data types in JavaScript. Like float, number, string, boolean, null, array, object, symbol, undefined, NaN, Infinity and understanding the difference between primitive and reference types. These concepts form the foundation of every JavaScript program, helping us store, compare, and manage data effectively. Harsh Vandana Sharma Bhaiya explained everything so well Every day, the journey into JavaScript gets more exciting and insightful. #SheryiansCodingSchool #JavaScript #WebDevelopment #LearningJourney #Frontend #Coding
To view or add a comment, sign in
-
-
In today’s class, we explored some really interesting JavaScript concepts related to Arrays — and how we can add, remove, and modify elements dynamically. Here’s a quick overview of what we covered 👇 📘 Topics we practiced: 🔹 Adding elements using push() and unshift() 🔹 Removing elements using pop() and shift() 🔹 Copying parts of an array with slice() 🔹 Replacing or removing elements with splice() A big shoutout to Miss Fatima Khalid for explaining everything so clearly and making the session interactive and fun! 🙌 Every small concept we learn adds up — one step closer to writing cleaner, smarter code 💪✨ #JavaScript #WebDevelopment #LearningJourney #Coding #Arrays #WomenInTech #StudentLife
To view or add a comment, sign in
-
-
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
To view or add a comment, sign in
-
-
🚀Day 32 of Cohort2.0 Today's class was about Control Flow in JS with Harsh Vandana Sharma at Sheryians Coding School. I've learned: 1️⃣. If, else if and else conditions and how it works and their syntax. 2️⃣. Switch-case and break; statement. 3️⃣. Early Return Pattern. which helps the code to be shorten and more efficient and manageable. we also saw and solved some examples using what we've learned in the class. #responsiveness #responsivedesig #css #scss #html #Cohort2 #webdevelopment #Javascript
To view or add a comment, sign in
-
"Just wrapped up #100Devs Class 31 by @LeonNoel: ‘Inheritance & Polymorphism in JavaScript’! 🚀 Dived deep into OOP concepts like encapsulation, abstraction, inheritance, and polymorphism, with hands-on examples and practical code walkthroughs. Learning how to write scalable, maintainable JS by using classes, constructors, and the power of object-oriented paradigm. Shubham Kumar Singh.
To view or add a comment, sign in
-
🚀Day 35 of Cohort2.0 Today's class was about deep dive in functions of JS with Harsh Vandana Sharma at Sheryians Coding School I've learned: 1️⃣. Types of parameters(required, destructured, rest, default) 2️⃣. Typea of arguments (Default, positional, spread) 3️⃣. Scope chain, Immediately invoked function expression(IIFE) 4️⃣. Types of functions (anonymous functions, nested functions, Higherorder functions, callback, first class) #responsiveness #responsivedesig #css #scss #html #Cohort2 #webdevelopment #Javascript
To view or add a comment, sign in
-
🚀 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
-
-
Day 36 | Cohort 2.0 Journey Yesterday was focused on solving logical JavaScript questions by Harsh Vandana Sharma from Sheryians Coding School the kind that really test how well you understand concepts, not just syntax. What I practiced today: 🔹 Applying loops, conditionals & operators together 🔹 Thinking like a developer, not just a coder These kinds of challenges don’t just improve JS they improve how you think 🧩 Bit by bit, sharpening the logic that will reflect in future projects 🚀 #Day36 #JavaScript #LogicalThinking #ProblemSolving #CodingJourney #Cohort2 #SheryiansCodingSchool
To view or add a comment, sign in
-
🚀 Day 38 | Deep Dive into Advanced JavaScript | Sheryians Coding School 💻✨ Today’s session took JavaScript to the next level - packed with concepts that truly sharpened both my logic and problem-solving skills! 💡 🔍 Explored Topics: 🔹 Functions → anonymous, higher-order, callback, first-class, pure & impure functions 🔹 Closures & Scoping Rules → mastering how variables and functions interact across scopes 🔹 Arrays → powerful methods like push(), pop(), slice(), filter(), map(), reduce(), and more 🔹 Objects → creating, updating, deleting, and working with nested structures Each concept added a new layer to my JavaScript understanding - seeing how these fundamentals shape real-world web apps was fascinating! ⚡ Every session at Sheryians makes me more confident in writing clean, efficient code. 💪🔥 #Day38 #JavaScript #FrontendDevelopment #WebDevelopment #Cohort2 #LearningJourney #CodingPractice #Closures #HigherOrderFunctions #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