Practicing JavaScript Logic Building Day 💻 🚀 Today I practiced multiple JavaScript logic-building exercises to strengthen my fundamentals and problem-solving skills. Here’s what I worked on 👇 🔹 Age eligibility checker 🔹 Multiplication table generator 🔹 Password validation (with limited attempts) 🔹 Counting and looping challenges 🔹 Divisible numbers finder 🔹 Odd number sum calculator 🔹 ATM simulator with balance check These small exercises helped me practice loops, conditions, comparisons, user input handling, and logical thinking the core of any good developer mindset 💪 💻 I pushed all my code to GitHub: 🔗 https://lnkd.in/d5cPhhzC 💬 How do you practice JavaScript logic daily challenges, projects, or problem sets? #JavaScript #WebDevelopment #Frontend #CodingJourney #LearningInPublic #100DaysOfCode #ProblemSolving #BuildInPublic
Practiced JavaScript logic exercises and shared code on GitHub
More Relevant Posts
-
💡 The Curious Case of NaN in JavaScript Ever tried this in JavaScript? 👇 console.log(typeof NaN); // 🤔 Surprise! The output is "number" 😄 That’s right — NaN (Not-a-Number) is ironically of type number! It represents an invalid numeric operation — like dividing 0 / 0 or parsing Number("abc"). Think of it like this: “NaN is JavaScript’s polite way of saying — I tried to do the math, but it doesn’t make sense!” 😅 #JavaScript #CodingTips #WebDevelopment #FrontEnd #LearnJavaScript #CodeNewbie #TechCommunity #DeveloperLife #ProgrammingHumor
To view or add a comment, sign in
-
🚀 Day 10 of My 30 Days of JavaScript Journey ✅ Challenge: Allow One Function Call (LeetCode #2666) Create a function once(fn) that ensures a given function can only be executed once. The first call should execute and return the result of fn, while all subsequent calls should return undefined. 💻 Language Used: JavaScript ❓ Problem Link: https://lnkd.in/gpX3MkFD 💡 Solution: https://lnkd.in/gAYsYP6d 🧠 Concept Highlighted: This problem focuses on closures and function state management in JavaScript. By storing state within a closure, we can control how many times a function executes — a powerful concept for optimizing performance and preventing redundant calls. #Day10 #JavaScript #LeetCode #30DaysOfCode #CodingChallenge #WebDevelopment #FrontendDevelopment #Closures #LearningEveryday #ProblemSolving #ES6
To view or add a comment, sign in
-
💻 JavaScript Code Challenges: Level Up Your Skills 💻 Want to truly master JavaScript? Stop memorizing and start practicing with real engine-level challenges: 1️⃣ Scope & Lexical Environment let a = 10; function test() { let a = 20; console.log(a); } test(); // ? console.log(a); // ? 2️⃣ Closures function counter() { let count = 0; return function() { count++; return count; } } const inc = counter(); console.log(inc()); // ? console.log(inc()); // ? 3️⃣ Hoisting & TDZ console.log(x); // ? let x = 5; console.log(y); // ? var y = 10; ✅ Challenge yourself: Predict the output before running the code. Understand why it behaves that way. That’s how you think like the JS engine! #JavaScript #CodingChallenge #Closures #Scope #Hoisting #LexicalScoping #TDZ #DevCommunity #WebDevelopment #ProgrammingTips #CleanCode
To view or add a comment, sign in
-
🚀 Day 4 of My 30 Days of JavaScript Journey ✅ Challenge: Create Counter Object (LeetCode #2665) Write a function createCounter(init) that returns an object with three functions: increment() → increases the value by 1 and returns it. decrement() → decreases the value by 1 and returns it. reset() → resets the value to the initial value and returns it. 💻 Language Used: JavaScript ❓ Problem Link: https://lnkd.in/gKxPxb8Y 💡 Solution: https://lnkd.in/g3jv6Nfi 🧠 Concept Highlighted: This challenge strengthens understanding of closures and object methods in JavaScript. It shows how functions can preserve and modify internal state — a key concept in building dynamic, stateful applications. #JavaScript #LeetCode #30DaysOfCode #CodingChallenge #WebDevelopment #FrontendDevelopment #LearningEveryday #Closures #ProblemSolving
To view or add a comment, sign in
-
Day 69 of #100daysCode Ever wondered how JavaScript thinks? 🤔 It’s all about Variables, Data Types, and Operators! These 3 concepts might seem simple, but they’re the secret to how JS handles everything — from text to numbers to logic. Swipe through my carousel to learn the basics in a fun, visual way 🎨✨ #JavaScript #CodingJourney #FrontendDevelopment #LearnToCode #WomenInTech
To view or add a comment, sign in
-
💻 JavaScript Conditional Statements (If-Else, Else If, Switch & Ternary) In today’s practice, I explored how JavaScript makes decisions using conditional statements. These help programs respond differently based on input or conditions — just like real-life choices! 🌟 🧩 Covered Concepts: ✅ If–Else: Checking even/odd numbers, eligibility, positive/negative, passwords, divisibility 🧠 Else–If Ladder: Grades, largest number, months, temperature, character types 🔁 Switch Case: Days, seasons, calculator, traffic lights, grades ⚡ Ternary Operator: Quick checks for positivity, largest number, leap year, pass/fail, and case 💬 Practicing these statements improved my logic-building and problem-solving skills in JavaScript! #JavaScript #WebDevelopment #CodingPractice #FrontendDevelopment #LearnToCode #ProgrammingJourney
To view or add a comment, sign in
-
✨ Just built a Password Generator using JavaScript! 🔐 Excited to share my latest mini project — a simple yet powerful Password Generator that allows users to create secure and customizable passwords instantly. This project helped me strengthen my JavaScript skills, especially around string manipulation, DOM handling, and event-driven logic. 💡 Key Features: ▪️ Adjustable password length ▪️ Option to include uppercase, lowercase, numbers, and special characters ▪️ Copy-to-clipboard functionality ▪️ Simple and responsive UI You can check it out here 👇 🔗 Live Demo: https://lnkd.in/gpuu3nBE 💻 GitHub Repository: https://lnkd.in/gRqFhxYR I’d love to hear your feedback or suggestions for improvement! 🚀 #JavaScript #WebDevelopment #Coding #Frontend #ProjectShowcase #PasswordGenerator #LearningByBuilding
To view or add a comment, sign in
-
-
🚀 Day 6 of My 30 Days of JavaScript Challenge 🧩 Problem: Filter Elements from Array (LeetCode #2634) Given an integer array arr and a filtering function fn, return a new array filteredArr that only includes elements where fn(arr[i], i) returns a truthy value. Solve this without using the built-in Array.filter() method. 💻 Language: JavaScript ❓ Question: https://lnkd.in/eSGpgXcM 💡 Solution: https://lnkd.in/ekA6y-u3 🧠 Concepts Used: Higher-order functions and callbacks Conditional checks for truthy/falsy values Understanding Boolean(value) behavior in JavaScript 📚 Takeaway: Rebuilding filter() from scratch deepens understanding of conditional logic, iteration, and truthy/falsy evaluation — all essential for functional programming in JavaScript. #Day6 #JavaScript #30DaysOfCode #LeetCode #CodingChallenge #WebDevelopment #FrontendDevelopment #100DaysOfCode
To view or add a comment, sign in
More from this author
Explore related topics
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