🗓️ 𝐃𝐚𝐲 𝟑𝟔 – JavaScript: Loops, Recursion & Functions Today, I continued my JavaScript learning journey and explored: 🔁 𝗱𝗼...𝘄𝗵𝗶𝗹𝗲 𝗹𝗼𝗼𝗽 – executes at least once before checking the condition 🪜 𝗥𝗲𝗰𝘂𝗿𝘀𝗶𝗼𝗻 – functions calling themselves to solve problems efficiently ⏭️ 𝗟𝗼𝗼𝗽 𝗖𝗼𝗻𝘁𝗿𝗼𝗹 (𝗰𝗼𝗻𝘁𝗶𝗻𝘂𝗲) – skipping iterations when needed ⚙️ 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝘀 𝗶𝗻 𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁 – understanding why they’re widely used, how parameters, arguments, rest parameters, and hoisting work ✅ 𝙎𝙤𝙡𝙫𝙚𝙙 𝙖𝙡𝙡 𝙧𝙚𝙢𝙖𝙞𝙣𝙞𝙣𝙜 𝙦𝙪𝙚𝙨𝙩𝙞𝙤𝙣𝙨 from previous tasks. 📂 Here’s the repo: https://lnkd.in/ghPaTgZV Each topic adds more depth to how I write and structure JavaScript code! 💪 #JavaScript #FrontendDevelopment #Functions #LearningJourney #Sheryians #Cohort2_0 Sheryians Coding School Sheryians Coding School Community
Learned loops, recursion, and functions in JavaScript today.
More Relevant Posts
-
🗓️ 𝐃𝐚𝐲 𝟑𝟐 – JavaScript: 𝖢𝗈𝗇𝖽𝗂𝗍𝗂𝗈𝗇𝖺𝗅 𝖲𝗍𝖺𝗍𝖾𝗆𝖾𝗇𝗍𝗌, 𝖫𝗈𝗈𝗉𝗌 & 𝖱𝖾𝖼𝗎𝗋𝗌𝗂𝗈𝗇 Today I explored how JavaScript controls program flow and repeats tasks efficiently 👇 🧠 𝗖𝗼𝗻𝗱𝗶𝘁𝗶𝗼𝗻𝗮𝗹𝘀 – if, else-if, else, ternary operator, and switch for decision making 🔁 𝗟𝗼𝗼𝗽𝘀 – for, while, do...while, forEach, for...in, for...of 🪜 𝗥𝗲𝗰𝘂𝗿𝘀𝗶𝗼𝗻 – function calling itself to solve complex problems ⏭️ 𝗟𝗼𝗼𝗽 𝗖𝗼𝗻𝘁𝗿𝗼𝗹 – break & continue statements for better control Learning how to make code smarter and more dynamic 💪 #JavaScript #Cohort2_0 #FrontendDevelopment #LearningJourney #Sheryians Sheryians Coding School Sheryians Coding School Community
To view or add a comment, sign in
-
-
🗓️ 𝐃𝐚𝐲 𝟑𝟗 – JavaScript: Objects, Time Events & Operations Today, I explored more about how JavaScript manages and manipulates objects, along with time-based functions.⏱️ 📘 𝑻𝒐𝒑𝒊𝒄𝒔 𝑪𝒐𝒗𝒆𝒓𝒆𝒅: 🧠 𝗢𝗯𝗷𝗲𝗰𝘁 𝗛𝗮𝗻𝗱𝗹𝗶𝗻𝗴 – understanding how objects are stored and traversing their keys 🧩 𝗔𝗿𝗿𝗮𝘆 𝗮𝘀 𝗢𝗯𝗷𝗲𝗰𝘁 – exploring how arrays internally behave like objects ⏰ 𝗧𝗶𝗺𝗲 𝗘𝘃𝗲𝗻𝘁𝘀 – using setTimeout(), setInterval(), and clearing them with clearTimeout() & clearInterval() ⚙️ 𝗢𝗯𝗷𝗲𝗰𝘁 𝗢𝗽𝗲𝗿𝗮𝘁𝗶𝗼𝗻𝘀 – Object.freeze(), Object.seal(), destructuring, and common object methods 🧱 𝘁𝗵𝗶𝘀 𝗞𝗲𝘆𝘄𝗼𝗿𝗱 – understanding its behavior inside different contexts ✅ Solved 𝗟𝗲𝘃𝗲𝗹 𝟭 𝘣𝘦𝘨𝘪𝘯𝘯𝘦𝘳 𝘲𝘶𝘦𝘴𝘵𝘪𝘰𝘯𝘴 on these concepts to strengthen understanding and practical use. #JavaScript #Objects #Sheryians #Cohort2_0 #LearningJourney #FrontendDevelopment Sheryians Coding School Sheryians Coding School Community
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
-
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
-
-
Day 28 of #100DaysOfCode Hands On with JavaScript Basics Today’s session was packed with practical exercises that helped strengthen the JavaScript fundamentals I learned earlier. Key Topics Covered: Introduction to JavaScript and observing its behavior in webpages Linking JavaScript files and using the defer attribute Running JS directly in the browser console Variables and keywords: var, let, const Logging and user interaction (console, alert, prompt) Working with strings and template literals Statements, semicolons, and comments Expressions vs statements Data types, special values, and type conversions Primitive vs reference data types Along with the technical part, Harsh Vandana Sharma also shared valuable insights about industry standards, why many candidates face rejections in resumes and interviews, and how we can improve our approach to meet real-world expectations. Sheryians Coding School and Sheryians Coding School Community #100DaysOfCode #JavaScript #WebDevelopment #Frontend #CodingJourney #SheryiansCodingSchool
To view or add a comment, sign in
-
-
🗓️ 𝐃𝐚𝐲 𝟑𝟖 – JavaScript: Scope, Closures, Arrays & Objects Today’s session covered some of the most powerful and essential JavaScript concepts 👇 🧠 𝗦𝗰𝗼𝗽𝗲 & 𝗖𝗹𝗼𝘀𝘂𝗿𝗲𝘀 : 🌍 𝙎𝙘𝙤𝙥𝙞𝙣𝙜 𝙞𝙣 𝙅𝙖𝙫𝙖𝙎𝙘𝙧𝙞𝙥𝙩 – understanding global and function scope 🔒 𝘾𝙡𝙤𝙨𝙪𝙧𝙚𝙨 & 𝙎𝙘𝙤𝙥𝙞𝙣𝙜 𝙍𝙪𝙡𝙚𝙨 – how inner functions access outer variables 📦 𝗔𝗿𝗿𝗮𝘆𝘀 𝗶𝗻 𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁 : 📘 What 𝗮𝗿𝗿𝗮𝘆𝘀 are and how to create them ⚙️ 𝘾𝙤𝙢𝙢𝙤𝙣 𝙢𝙚𝙩𝙝𝙤𝙙𝙨 : push(), pop(), shift(), unshift(), indexOf() 🔄 𝘼𝙙𝙫𝙖𝙣𝙘𝙚𝙙 𝙤𝙥𝙚𝙧𝙖𝙩𝙞𝙤𝙣𝙨: filter(), some(), map(), reduce(), slice(), reverse(), sort(), join(), toString() 🧩 𝘼𝙧𝙧𝙖𝙮 𝘿𝙚𝙨𝙩𝙧𝙪𝙘𝙩𝙪𝙧𝙞𝙣𝙜 & 𝙎𝙥𝙧𝙚𝙖𝙙 𝙊𝙥𝙚𝙧𝙖𝙩𝙤𝙧 for efficient handling 🔁 Iterating arrays using 𝙛𝙤𝙧 𝙡𝙤𝙤𝙥 & 𝙛𝙤𝙧𝙀𝙖𝙘𝙝() 🧱 𝗢𝗯𝗷𝗲𝗰𝘁𝘀 𝗶𝗻 𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁 : 🗝️ Understanding 𝗼𝗯𝗷𝗲𝗰𝘁𝘀 𝗮𝘀 𝗸𝗲𝘆-𝘃𝗮𝗹𝘂𝗲 𝗽𝗮𝗶𝗿𝘀 🛠️ 𝗖𝗿𝗲𝗮𝘁𝗶𝗻𝗴, 𝗮𝗰𝗰𝗲𝘀𝘀𝗶𝗻𝗴, 𝗮𝗻𝗱 𝗱𝗲𝗹𝗲𝘁𝗶𝗻𝗴 properties 🏗️ Working with 𝗻𝗲𝘀𝘁𝗲𝗱 𝗼𝗯𝗷𝗲𝗰𝘁𝘀 Each topic added another layer to understanding how data and scope interact in JavaScript — truly the foundation of dynamic programming! 🚀 #JavaScript #LearningJourney #Sheryians #Cohort2_0 #WebDevelopment Sheryians Coding School Sheryians Coding School Community
To view or add a comment, sign in
-
-
🎯 Learning JavaScript Loops: While Loop Practice! Today, I practiced using while loops in JavaScript — one of the fundamental concepts in programming logic. Here’s what I built 👇 💡 Tasks I implemented: 1️⃣ Print numbers from 1 to 10 using a while loop. 2️⃣ Calculate the sum of numbers from 1 to 50. 3️⃣ Print numbers from 20 down to 1 in descending order. 4️⃣ Generate the multiplication table of 7 (from 1 × 7 to 10 × 7). 🧠 Each task helped me strengthen my understanding of loop conditions, increment/decrement operations, and logic flow in JavaScript. 🚀 Small steps like this make a big difference when learning to think like a developer. If you’re also learning JavaScript, try writing your own variations of these loops — it’s great practice! #JavaScript #WebDevelopment #CodingJourney #WhileLoop #LearnToCode #100DaysOfCode #FrontendDevelopment
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
-
-
🗓️ 𝐃𝐚𝐲 𝟑𝟕 – JavaScript: Functions Deep Dive Today’s session focused on understanding 𝘧𝘶𝘯𝘤𝘵𝘪𝘰𝘯𝘴 𝘪𝘯 𝘑𝘢𝘷𝘢𝘚𝘤𝘳𝘪𝘱𝘵 — the true building blocks of the language 💡 📘 𝘾𝙤𝙫𝙚𝙧𝙚𝙙 𝘾𝙤𝙣𝙘𝙚𝙥𝙩𝙨: ⚙️ 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻 𝗕𝗮𝘀𝗶𝗰𝘀 – declaration, parameters, arguments 📥 𝗣𝗮𝗿𝗮𝗺𝗲𝘁𝗲𝗿𝘀 – required, destructured, rest, default 📤 𝗔𝗿𝗴𝘂𝗺𝗲𝗻𝘁𝘀 – positional, default, spread 🧩 𝗛𝗼𝗶𝘀𝘁𝗶𝗻𝗴 – variable vs function hoisting 🔁 𝗖𝗹𝗮𝘀𝘀𝗶𝗰 & 𝗡𝗲𝘀𝘁𝗲𝗱 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝘀 – understanding scope and the scope chain ⚡ 𝗜𝗜𝗙𝗘 (𝗜𝗺𝗺𝗲𝗱𝗶𝗮𝘁𝗲𝗹𝘆 𝗜𝗻𝘃𝗼𝗸𝗲𝗱 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻 𝗘𝘅𝗽𝗿𝗲𝘀𝘀𝗶𝗼𝗻) – executing functions instantly 🏗️ 𝗔𝗿𝗿𝗼𝘄 / 𝗙𝗮𝘁 𝗔𝗿𝗿𝗼𝘄 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝘀 – concise syntax and lexical this 🕵️ 𝗔𝗻𝗼𝗻𝘆𝗺𝗼𝘂𝘀, 𝗛𝗶𝗴𝗵𝗲𝗿-𝗢𝗿𝗱𝗲𝗿, 𝗖𝗮𝗹𝗹𝗯𝗮𝗰𝗸, 𝗮𝗻𝗱 𝗙𝗶𝗿𝘀𝘁-𝗖𝗹𝗮𝘀𝘀 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝘀 – treating functions as values 🧠 𝗣𝘂𝗿𝗲 & 𝗜𝗺𝗽𝘂𝗿𝗲 𝗙𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝘀 – understanding side effects Each concept made me realize how powerful and flexible functions are in JavaScript! 🚀 #JavaScript #Functions #FrontendDevelopment #LearningJourney #Sheryians #Cohort2_0 Sheryians Coding School Sheryians Coding School Community
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
-
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