🚀 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
More Relevant Posts
-
🎯 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 806 of #900DaysOfCode 📘 Important Built-in JavaScript Methods You Must Know JavaScript gives us a treasure of built-in methods that make coding easier, cleaner, and more efficient. In today’s post, I’ve covered some of the most powerful and commonly used JS methods that every developer should master — from arrays and strings to objects and numbers. These methods can save you lines of code, improve readability, and help you write smarter, more elegant JavaScript. 💡 If you want to go from writing code to crafting solutions — this post is for you! 💬 Which JS method do you find yourself using the most? Drop it in the comments 👇 #Day806 #learningoftheday #900daysofcodingchallenge #JavaScript #WebDevelopment #FrontendDevelopment #CleanCode #LearnToCode #Programming #CodeBetter
To view or add a comment, sign in
-
Day 6 of #30DaysOfJavaScript: Unlocking the Power of Array Reduction by Building My Own! 🚀 Today’s challenge took me under the hood of one of JavaScript’s most versatile methods—the .reduce() function. Instead of relying on the built-in version, I crafted a custom reducer that processes an array sequentially to accumulate a final result from an initial value. Here’s a glimpse of the solution I created: What stood out today: The elegance of breaking down complex operations into simpler, reusable steps using higher-order functions. Deepened my understanding of how accumulator patterns work in JavaScript and other programming languages. A fresh appreciation for common built-in functions that hide these powerful mechanics behind simple calls. This hands-on experience is a big step forward in mastering JavaScript fundamentals and improving my problem-solving skills. Looking forward to sharing more coding adventures and growing with this community! If you’re also on this journey, feel free to connect and exchange insights. #JavaScript #CodeNewbie #WebDevelopment #LeetCode #AlgorithmPractice #Programming #ContinuousLearning
To view or add a comment, sign in
-
💻 Exploring JavaScript Operators and Functions! 🚀 Today I practiced different types of operators and functions in JavaScript, including: ✨ Arithmetic Operators ( + , - , * , % ) ✨ Logical Operators ( && , || , ! ) ✨ String Concatenation ✨ Custom Functions for addition, subtraction, multiplication, and division This helped me understand how JavaScript performs calculations, comparisons, and combines strings — all fundamental skills for any developer! 🧠 Every line of code teaches something new. #JavaScript #WebDevelopment #CodingJourney #LearnToCode #Programming #JSBasics
To view or add a comment, sign in
-
📘 Chapter 15: Arrays in JavaScript 💻 In this chapter, we explore one of the most essential concepts in JavaScript — the Array 🔢 Arrays allow us to store and manage multiple values in a single variable — making our code cleaner, faster, and more dynamic. ✨ What You’ll Learn: ✅ How to create and access arrays ✅ Add or remove elements with .push(), .pop(), .shift(), .unshift() ✅ Find the length of an array ✅ Loop through arrays using for and forEach() 🚀 Keep learning, keep coding! #JavaScript #WebDevelopment #Coding #Programming #FrontendDevelopment #LearnToCode #100DaysOfCode #CodeNewbie #SoftwareEngineer #Developers #TechCommunity #ArrayInJavaScript #WebDevJourney #CodingLife #JSRoadmap #FullStackDevelopment #TechLearning
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
-
-
🚀 Master JavaScript — The Language of the Web! I’ve prepared handwritten JavaScript notes to help beginners and aspiring developers learn core to advanced concepts in the simplest way possible. 📘 What’s Inside: 🔴 Introduction to JavaScript 🔴Variables, Data Types & Operators 🔴Functions, Loops & Conditional Statements 🔴Arrays, Objects & DOM Manipulation 🔴ES6 Features (Arrow Functions, Let/Const, Classes, etc.) 🔴Event Handling & Mini Projects 💡 Perfect for students, beginners, and anyone preparing for frontend or full-stack interviews. For more content follow 👉 Gyanendra Namdev If you found this helpful — ✅ Follow me for more handwritten notes on programming & development 💬 DM me if you want the full collection or topic-wise notes! Let’s grow together in tech 🌱💻 #JavaScript #FrontendDevelopment #HandwrittenNotes #WebDevelopment #LearnToCode #Developers #Coding #Programming #FullStackDevelopment
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
-
-
🚀 Callback Hell in JavaScript: The “Pyramid of Doom”! In JavaScript, Callback Hell happens when multiple asynchronous functions are nested inside each other, creating deeply indented code that’s hard to read, debug, and maintain. 😩 ✅ How to avoid it: Use Promises to flatten nested callbacks Use async/await for clean, readable code Modularize your logic into smaller functions #JavaScript #WebDevelopment #CallbackHell #AsyncAwait #Promises #CodingTips #FrontendDevelopment #WebDevelopers #CleanCode #Programming #LearnToCode #CodeSmarter #DeveloperCommunity
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