🚀 Day 17 of #100DaysOfCode — JavaScript Logic Mode ON ⚡ Today was all about decision-making in JavaScript. ✅ Topics Covered: console.log() and linking JS files Template Literals Operators in JS Comparison Operators Comparison for Non-numbers Conditional Statements if, else if, else Nested if-else Logical Operators (&&, ||, !) Truthy & Falsy values Practice Questions 🧠 Big Learning Today: JavaScript comparisons are tricky. == vs === can completely change results. Also understood how truthy and falsy values actually control program flow — something that seems simple but is very powerful. Every day I’m connecting C++ logic with JavaScript thinking. Consistency > Motivation 💪 On to Day 18 🚀 #100DaysOfCode #Day17 #JavaScript #WebDevelopment #FrontendDeveloper #CodingJourney #Consistency #LearningInPublic #StudentDeveloper #ManavRachna
Day 17 of 100DaysOfCode: JavaScript Logic and Comparison Operators
More Relevant Posts
-
💻 JavaScript Beginner Level Practice – Factorial Program Today I practiced a JavaScript program to calculate the factorial of a number using recursion. function factorial(n){ if(n === 0 || n === 1){ return 1; } return n * factorial(n - 1); } console.log(factorial(5)); 📌 Output: 120 💡 Explanation: Factorial means multiplying all whole numbers from 1 to the given number. Example: 5! = 5 × 4 × 3 × 2 × 1 = 120. #JavaScript #BeginnerLevel #CodingPractice #WebDevelopment #LearningToCode
To view or add a comment, sign in
-
-
🚀 30 Days of JavaScript – Day 4 Continuing my journey to improve JavaScript logical thinking by building small programs every day. 💡 Today’s Program: Vowel Identifier & Replacement This program: i) Takes a name as input ii) Identifies vowels (a, e, i, o, u) iii) Replaces vowels with * iv) Counts the total number of vowels in the name 🧠 Concepts Used: prompt() for user input for loop for iteration toLowerCase() for case handling includes() method Conditional logic (if / else) Example: Input → john Output → j*hn Total Vowels → 1 🎥 Demo below 👇 Full source code in the first comment. #JavaScript #WebDevelopment #CodingJourney #ProblemSolving #LearningJavaScript #30DaysOfCode
To view or add a comment, sign in
-
🚀 30 Days of JavaScript – Day 8 Continuing my journey to improve my JavaScript logical thinking by building small programs every day. 💡 Today’s Mini Project: Random Color Generator This program randomly selects a color and changes the background color of the page. 🧠 Concepts Used: Arrays Math.random() confirm() and alert() Basic DOM manipulation 🎥 Demo video below 👇 Full source code in the First comment. #JavaScript #WebDevelopment #CodingJourney #FrontendDeveloper #LearningJavaScript #30DaysOfCode
To view or add a comment, sign in
-
🚀 30 Days of JavaScript – Day 5 Continuing my journey to improve my JavaScript logical thinking by building small programs every day. 💡 Today’s Program: Reverse a String This program takes a word from the user and reverses it using a loop. 🧠 Concepts Used: • for loop • string indexing • basic string manipulation Example: Input → JavaScript Output → tpircSavaJ 🎥 Demo below 👇 Full source code in the First comment. #JavaScript #CodingJourney #ProblemSolving #WebDevelopment #Learning
To view or add a comment, sign in
-
𝐃𝐚𝐲 𝟑/10 – 𝐈𝐧-𝐛𝐮𝐢𝐥𝐭 𝐅𝐮𝐧𝐜𝐭𝐢𝐨𝐧𝐬 & 𝐀𝐫𝐫𝐚𝐲 𝐎𝐩𝐞𝐫𝐚𝐭𝐢𝐨𝐧𝐬 🔍📃 ✨ Today I explored some of the most useful in-built functions in TypeScript (via JavaScript) that make problem-solving easier: 🔹 split (""): This method takes a string and breaks it into an array of its individual characters. It’s useful when you want to manipulate or process each character separately. 🔹 reverse (): This method reverses the order of elements in an array. When applied after splitting a string, it flips the sequence of characters. 🔹 join (""): This method takes all elements of an array and combines them back into a single string. By using an empty string as the separator, the characters are joined without spaces. Examples - 1. Palindrome 2. Reverse of a string 3. Max of an array #TypeScript#Programming #Learning#Automation#Playwright
To view or add a comment, sign in
-
-
🚀 Mastering Operators in JavaScript From arithmetic and comparison to logical and ternary operators — understanding operators is the foundation of writing powerful JavaScript logic. If you want to build strong problem-solving skills in JS, start with operators. 💻🔥 #JavaScript #WebDevelopment #FrontendDeveloper #Pyspiders #LearnToCode #TechSkills
To view or add a comment, sign in
-
-
Practicing JavaScript fundamentals with for…of loops. In this project, I: Printed even and odd numbers from an array Calculated the sum of even and odd numbers Found the total sum of all numbers Determined the highest numbers in even and odd arrays Focused on strengthening logic and DOM manipulation skills. #JavaScript #WebDevelopment #CodingPractice #LearningInPub https://lnkd.in/dbPUv_Ka
To view or add a comment, sign in
-
🚀 30 Days of JavaScript – Day 6 Continuing my journey to improve my JavaScript logical thinking by building small programs every day. 💡 Today’s Program: Find the Largest Number (User Input) This program allows the user to enter numbers separated by commas and then finds the largest number in the list. 🧠 Concepts Used: • prompt() for user input • split() to convert input into an array • map(Number) to convert strings into numbers • for loop for iteration • Conditional comparison (if statement) 📌 Example Input: 10,25,7,90,30 Output: Largest Number: 90 🎥 Demo below 👇 Full source code in the First comment. #JavaScript #WebDevelopment #CodingJourney #ProblemSolving #LearningJavaScript #30DaysOfCode
To view or add a comment, sign in
-
I worked with regular functions and arrow functions in JavaScript, and it was really interesting. Functions make big tasks much easier. We can organize all the logic inside a function and simply call it when needed — no need to write the same code again and again. Once the structure is ready, it saves a lot of time. Arrow functions feel like a shorter and cleaner version of regular functions. With a single parameter and a one-line result, we don’t even need to write return. For multiple lines, we use return as usual. Learning step by step and enjoying the process. #JavaScript #Functions #ArrowFunctions #CodingJourney #WebDevelopment
To view or add a comment, sign in
-
🚀 Day 5 of #100DaysOfCode Built a Dice Roll Simulator using JavaScript. Features: 🎲 Random dice generation 🎲 Roll history tracking 🎲 Dynamic dice images Learning how randomness and DOM manipulation work together in JavaScript. Repo:-https://lnkd.in/geZqCnQ9 #JavaScript #WebDevelopment #100DaysOfCode
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
Small question for developers 👇 When do you still use == instead of === in real projects? Or should beginners always stick to ===? Curious to learn from experience! 🔥 #100DaysOfCode