Learning by building: wrote a simple JS program that takes a number and prints its multiplication table with clean loops, input validation, and readable template strings. Small steps, consistent commits, better logic every day. 🚀 #JavaScript #VSCode #100DaysOfCode #BuildInPublic”
Built a JS program for multiplication tables with loops and input validation. #JavaScript #100DaysOfCode
More Relevant Posts
-
JS Tutorial #3: Functions Title: JS Tutorial #3: Functions in JavaScript Content: Functions are reusable blocks of code. They help organize your program. Code snippet: function greet(name) { return `Hello, ${name}!`; } console.log(greet("Cognothink")); Engagement: Write a function that takes two numbers and returns their sum. Try it out! #JavaScript #WebDevelopment #Coding #LearnJS #Cognothink
To view or add a comment, sign in
-
🧩 Day 41 | Classes & Default Parameters Today’s focus was on Classes & Default Parameters — how structure, encapsulation, and flexibility elevate JavaScript’s power. ✨ Key Insight: Classes help organize code; default parameters make it smarter and reusable. 🔗 GitHub: https://lnkd.in/dtdU9-zZ #WebDevelopment #JavaScript #CodingJourney #OOP
To view or add a comment, sign in
-
-
🚀 Day 19 of 30 Days of JavaScript – LeetCode Problem: 1207. Unique Number of Occurrences Today’s challenge was all about checking whether the number of occurrences of each value in an array is unique. ✅ My Approach 1️⃣ Count occurrences I used a for...of loop to count how many times each element appears in the array. 2️⃣ Store frequency results This gives me an object holding the occurrence count of every unique item. 3️⃣ Convert to a Set I extracted the values and converted them into a Set using new Set(), since a set automatically removes duplicates. 4️⃣ Compare values Arrays and sets can’t be directly compared, so I converted both to strings using JSON.stringify() to compare their datatype + values. 5️⃣ Return result If both match, I return true; otherwise, false. #JavaScript #LeetCode #30DaysOfCode #codingjourney #developerlife
To view or add a comment, sign in
-
-
💡 Understanding Object Methods in JavaScript Working with objects is fundamental in JS. Here's a quick overview of some powerful methods: Object.keys(obj) → Returns all keys of the object. Object.values(obj) → Returns all values of the object. Object.entries(obj) → Returns key-value pairs as arrays. obj.hasOwnProperty("property") → Checks if the object has a specific property. Object.assign({}, obj, { newProperty: "newValue" }) → Creates a new object by merging existing ones. 👉 View the full example on GitHub: https://lnkd.in/dDN-vDkD #JavaScript #FullStack #100xDevs #WebDevelopment #Coding #JSConcepts #LearnJavaScript
To view or add a comment, sign in
-
🚀 JavaScript Tip of the Day – Find Duplicate Values in an Array Efficiently! Today I worked on a simple but powerful logic to detect duplicate elements in an array using ES6 Sets. This approach is clean, fast, and avoids unnecessary loops. 🔍 What this does: Tracks seen values Captures duplicates only once Converts the result back to an array ✨ Output: [2, 3] Small logic, big impact! #JavaScript #Coding #WebDevelopment #100DaysOfCode #LearnEveryday
To view or add a comment, sign in
-
-
💻 Day 2 — Learning to Think in Logic 🧠 Today was all about decision making in JavaScript — learning how code “thinks.” I explored conditional statements: if, else if, switch, and even played around with alert, prompt, and error handling. It’s wild how these simple tools form the foundation of every program’s logic. Each concept feels like another small piece of the bigger picture coming together. Still early days — but every line of code is one step closer to clarity and confidence. 🌱 #Day2 #CodingJourney #MERNStack #LearnInPublic #JavaScript
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
-
💻 Day 3 of #100DaysOfCode > 🚀 Today I learned about JavaScript Loops — one of the most powerful concepts for repeating tasks! 🔁 The 5 main types of loops in JavaScript: 1️⃣ for loop 2️⃣ while loop 3️⃣ do...while loop 4️⃣ for...of loop 5️⃣ for...in loop 💡 Loops make our code efficient and clean by reducing repetition. #100DaysOfCode #JavaScript #WebDevelopment #CodingJourney #FullStackDeveloper
To view or add a comment, sign in
-
-
Javascript Logic Challenge #2 — Reverse a Number Goal: Write a JavaScript program to reverse a number. Example: Input: 1234 Output: 4321 Step-by-Step : 1. Pick the last digit (using % 10) 2. Add it to a new number (reverse) 3. Remove the last digit (using Math.floor(num / 10)) 4. Keep doing it until no digits are left Every small code teaches me something new . guess the output #JavaScript #LogicBuilding #WebDevelopment #CodingJourney #FrontendDeveloper #LearningEveryday
To view or add a comment, sign in
-
-
🚀 Did you know? In JavaScript, setTimeout(..., 0) doesn’t actually run immediately. It runs after all Promises and await calls — even if the delay is 0ms 🧠 Why? Because JS runs all microtasks (like Promises and await) before moving on to macrotasks (like setTimeout, setInterval, etc.). 💡 Takeaway: Understanding the event loop helps you fix async bugs and write smoother, predictable code. #JavaScript #Coding #WebDevelopment #EventLoop #AsyncProgramming #CodeTips #Developers #Learning #letsLearnWithPrateek #Day7 Here’s proof 👇
To view or add a comment, sign in
-
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