🚀 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
More Relevant Posts
-
🚨 Many beginners get confused between var, let, and const in JavaScript. They all create variables… but they behave very differently. If you understand this early, your JavaScript code will be cleaner and safer. Here is the simple difference 👇 • var Old way to create variables. It is function scoped and can be re-declared and updated. • let Modern JavaScript variable. It is block scoped and can be updated but not re-declared in the same scope. • const Used for values that should not change. It is block scoped and cannot be re-assigned. Quick tip 💡 Use const by default, let when value changes, and avoid var in modern JavaScript. Small concepts like this make a big difference in writing better code. #javascript #webdevelopment #frontenddevelopment #codingtips #learnjavascript #programmingbasics #softwaredevelopment #devcommunity #100daysofcode #javascriptdeveloper
To view or add a comment, sign in
-
-
📌 LinkedIn Post Content 🚀 30 Days of JavaScript – Day 7 Continuing my journey of improving JavaScript logical thinking by solving small problems daily. 💡 Today’s Program: Remove Duplicate Numbers from an Array This program takes numbers as input and removes duplicate values to create a list of unique numbers. 🧠 Concepts Used: • Arrays • split() and map() • includes() method • for loop • Conditional logic Example: Input → 1,2,3,2,4,1,5 Output → [1,2,3,4,5] 🎥 Demo below 👇 Full source code in the First comment. #JavaScript #CodingJourney #ProblemSolving #WebDevelopment #LearningJavaScript
To view or add a comment, sign in
-
🚀 Today’s JavaScript Practice: Merging Two Arrays Using a For Loop Today I practiced how to merge two arrays in JavaScript using a for loop instead of built-in methods. This helped me better understand how array indexing and loops work internally. 🔹 First, I created two arrays with some numbers. 🔹 Then I used a for loop to copy elements from the first array into a new array. 🔹 After that, I used another for loop to add elements of the second array after the first array’s elements. 💻 Example idea: data1 = [10,20,30,40,50] data2 = [60,70,80,90,100] ✅ Result → [10,20,30,40,50,60,70,80,90,100] You can also check my GitHub profile for more practice projects and code. #DSA #JavaScript #WebDevelopment #CodingPractice 😊
To view or add a comment, sign in
-
🚀 30 Days of JavaScript – Day 16 Starting to build more structured programs using JavaScript. 💡 Today’s Project: Contact Manager This program allows users to: • Add contacts (name & phone) • View stored contacts 🧠 Concepts Used: • functions • arrays of objects • oops • menu-driven logic This helped me understand how to organize code into reusable functions. 🎥 Demo below 👇 Full source code in the First comment. #JavaScript #WebDevelopment #CodingJourney #LearningJavaScript #ProblemSolving
To view or add a comment, sign in
-
💻 JavaScript Practice: Merging Two Arrays Using a While Loop Today I practiced an important JavaScript concept — merging two arrays using a while loop. It’s a great exercise to improve logical thinking and understand how loops and indexes work together. Instead of using built-in methods like concat() or the spread operator, I tried doing it manually with a while loop. This helps in understanding how data moves step by step inside arrays. Key Idea: Start with two arrays. Use a while loop to iterate through them. Push elements into a new array until all elements are merged. Example: let arr1 = [1, 2, 3]; let arr2 = [4, 5, 6];then let result = [1,2,3,4,5,6] Practicing these small problems helps build a stronger foundation in JavaScript logic and problem-solving. 🚀 #JavaScript #DSA #WebDevelopment #CodingPractice #FrontendDevelopment 😊
To view or add a comment, sign in
-
🚀 Day 39/50 – Scope in JavaScript Today I learned about Scope in JavaScript, which defines where variables can be accessed in a program. 🔹 Scope determines the visibility and accessibility of variables. 📌 Types of Scope in JavaScript 1️⃣ Global Scope – Variables declared outside any function can be accessed anywhere. let name = "Priyanka"; function show() { console.log(name); } show(); 2️⃣ Function Scope – Variables declared inside a function are accessible only within that function. function test() { let msg = "Hello"; console.log(msg); } test(); 3️⃣ Block Scope – Variables declared with let and const inside {} are block-scoped. if(true){ let x = 10; console.log(x); } 4️⃣ Local Scope – Variables declared inside a block or function are local to that area. 💡 Key Learnings: ✅ var → function scoped ✅ let and const → block scoped ✅ Scope helps avoid variable conflicts ✅ Improves code security and readability Thanks for mentors 10000 Coders Raviteja T Abdul Rahman #Day39 #50DaysOfCode #JavaScript #WebDevelopment #FrontendDeveloper #CodingJourney #LearningEveryday
To view or add a comment, sign in
-
-
Day 19 of my JavaScript journey 🚀 Built a Registration Form Validator using HTML, CSS, and JavaScript. This project validates user inputs like name, email, password, and ensures correct data before submission. This project helped me practice: • Form validation logic • Regular expressions (Regex) • DOM manipulation • Handling user input errors 🔗 Live Demo: https://lnkd.in/gs7ADxub 💻 GitHub Repo: https://lnkd.in/gkcgwdie Learning how to build more secure and user-friendly forms step by step. 💻 #JavaScript #WebDevelopment #FrontendDeveloper #100DaysOfCode #CodingJourney
To view or add a comment, sign in
-
Day 22 of my JavaScript journey 🚀 Updated my Contact Form by adding JavaScript functionality to make it more interactive and user-friendly. Features: ✔️ Form validation (required fields & email format) ✔️ Real-time error messages ✔️ Prevent submission on invalid input ✔️ Improved user experience with dynamic feedback This update helped me understand how to move from just designing forms to building functional and user-friendly applications. 🔗 Live Demo: https://lnkd.in/gcawshv3 💻 GitHub Repo: https://lnkd.in/gPDFb_vJ Learning not just to build, but to improve and refine my projects step by step. 💻 #JavaScript #WebDevelopment #FrontendDeveloper #100DaysOfCode #CodingJourney
To view or add a comment, sign in
-
Day 20 of my JavaScript journey 🚀 Built a Password Generator with advanced features using HTML, CSS, and JavaScript. Features: 🔐 Custom password length (8–20 characters) 🔤 Include/exclude uppercase, lowercase, numbers, and symbols 📋 One-click copy to clipboard 📊 Password strength indicator This project helped me dive deeper into logic building, user input handling, and creating practical tools. 💻 GitHub Repo: https://lnkd.in/g7kFznGK Focused on building projects that are not just functional, but actually useful. 💻 #JavaScript #WebDevelopment #FrontendDeveloper #100DaysOfCode #CodingJourney
To view or add a comment, sign in
-
Day 12 #100DaysOfCode 💻 Today I learned about Synchronous vs Asynchronous JavaScript, especially how setTimeout() and setInterval() work. JavaScript runs code synchronously by default (line by line). But functions like "setTimeout()" run asynchronously, meaning they execute later without blocking the main thread. Example: console.log("1"); setTimeout(() => { console.log("2"); }, 0); console.log("3"); Output: 1 3 2 Even with "0ms", "setTimeout" goes to the callback queue, so the synchronous code runs first. Understanding this concept helped me see how JavaScript handles non-blocking tasks. #JavaScript #AsyncJavaScript #WebDevelopment #CodingJourney #Akbiplob
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
let input = prompt("Enter numbers separated by commas (example: 10,25,7,90,30)"); let numbers = input.split(",").map(Number); let largest = numbers[0]; for (let i = 1; i < numbers.length; i++) { if (numbers[i] > largest) { largest = numbers[i]; } } console.log("Numbers:", numbers); console.log("Largest Number:", largest);