💖Day 16, Project 3: Love Calculator: Building a Fun & Interactive Love Calculator Body: As part of Day 16 of the “3 Pro” series by Rohit Negi (Coder Army), I built a Love Calculator using HTML, CSS, and JavaScript. This project is designed to be beginner-friendly and demonstrates how simple web technologies can create interactive applications. Project Features: Input Fields: Users can enter two names. Calculate Button: Triggers the love compatibility calculation. Result Display: Shows the compatibility percentage dynamically. Technologies Used: HTML: Structured the webpage with headings, input fields, and buttons. CSS: Styled the interface with background color, centered content, and visually appealing inputs/buttons. JavaScript: Implemented the logic to calculate a “love percentage” between 0% and 100% using character codes. How it Works: The names entered by users are trimmed and combined. Each character is converted to its ASCII code, summed up, and then % 101 is used to get a percentage. The result is displayed dynamically on the webpage. Sample Logic (JavaScript): const combinedNames = name1.toLowerCase() + name2.toLowerCase(); let score = 0; for (let char of combinedNames) { score += char.charCodeAt(0); } const lovePercentage = score % 101; Why This Project? It’s fun and interactive, making coding enjoyable. Great practice for combining HTML, CSS, and JavaScript. Perfect for beginners to understand input handling, basic logic, and DOM manipulation. #WebDevelopment #JavaScript #HTML #CSS #LoveCalculator #CoderArmy #RohitNegi #Day16Project3 #CodingProjects #BeginnerFriendly
More Relevant Posts
-
#Days29 🌟 #Lecture14 - Mastering DOM Manipulation in JavaScript Today, I explored one of the most essential parts of web development—DOM manipulation. It’s the foundation of creating dynamic and interactive web pages. Here’s what I learned. 👇 🔹 1️⃣ Editing Content textContent → Safest way to update plain text ✅ innerHTML: For inserting HTML, but handle with care (XSS risk ⚠️) 🔹 2️⃣ Editing Attributes, Classes & Styles Change attributes directly: img.src, div.id, input.value Manage classes efficiently: element.classList.add('active'), remove(), toggle() Apply inline styles dynamically: element.style.backgroundColor = 'blue' 🔹 3️⃣ Editing Structure (Creating & Adding Elements) Create new elements: document.createElement() Add elements: append(), prepend(), before(), after() Remove elements easily: element.remove() 🔹 4️⃣ Optimize Performance with DocumentFragment When adding multiple elements (like 1000 list items), Use a DocumentFragment to reduce reflows and make DOM updates faster. const fragment = document.createDocumentFragment(); for (let i = 0; i < 1000; i++) { const li = document.createElement('li'); li.textContent = `Item ${i}`; fragment.appendChild(li); } list.appendChild(fragment); // Single efficient update 💡 Key Takeaway: Efficient DOM manipulation = faster, smoother, and more responsive user interfaces. A heartfelt thank you to Rohit Negi Bhaiya for your constant guidance, support, and clear explanations. #JavaScript #WebDevelopment #Frontend #DOM #LearningJourney #Programming #Tech
To view or add a comment, sign in
-
-
🚀 Day 11 of my #100DaysCodingChallenge — Built a Functional Calculator using HTML, CSS, and JavaScript! #calculatorApp Today’s project was all about understanding logic building, event handling, and DOM manipulation in JavaScript — by creating a simple yet powerful Calculator App. 💡 What I Built: A basic calculator that can perform addition, subtraction, multiplication, and division — along with AC (All Clear) and DEL (Delete) functionalities. Users can input numbers by clicking buttons, and results are displayed instantly on the screen. ⚙️ What I Used & Learned: 1️⃣ HTML: Built a simple calculator layout using input fields and buttons. Used semantic structure to make it clean and accessible. Each button has a class (btn) to easily attach functionality through JS. 2️⃣ CSS: Styled the calculator with a modern and minimal look. Learned how to use Flexbox for alignment and responsive design. Added hover effects for better user interactivity. 3️⃣ JavaScript: Used document.querySelectorAll() and addEventListener() to make buttons interactive. Implemented string concatenation and slicing to manage user input. Used the eval() function (safely) to evaluate mathematical expressions dynamically. Handled special operations like “AC” (clear all input) and “DEL” (remove last character). This project deepened my understanding of event-driven programming and how DOM manipulation can bring static HTML to life! hashtag #WebDevelopment #JavaScript #FrontendDevelopment #HTML #CSS #calculator #CalculatorApp #Calculatorcalculation #CodingJourney #100DaysOfCode #LearningByDoing #DeveloperLife hashtag #BuildInPublic #TechProject #AdarshMishra #CodingCommunity git - https://lnkd.in/gDJ9jrFJ Saurabh Shukla
To view or add a comment, sign in
-
-
🕒 Day 16, Project 5 – Building a Real-Time Digital Clock with JavaScript Body: As part of Day 16 in the “3 Pro” series by Rohit Negi (Coder Army), I developed a real-time digital clock using HTML, CSS, and JavaScript. This project demonstrates how to use JavaScript’s Date object, DOM manipulation, and the setInterval method to create dynamic, real-time web applications. Project Features: Displays the current time (HH:MM:SS) dynamically on the webpage. Updates every second without page reload using setInterval(). Uses JavaScript Date object and toLocaleTimeString() for formatting. Simple HTML structure and clean CSS styling for a user-friendly interface. Key JavaScript Logic: const div = document.querySelector('div'); function updateClock() { let time = new Date(); div.textContent = time.toLocaleTimeString(); } // Initial call to display immediately updateClock(); // Update clock every 1 second setInterval(updateClock, 1000); Why This Project? Introduces beginners to real-time updates in web apps. Demonstrates DOM manipulation to dynamically change content. Shows practical use of JavaScript timing functions for interactive applications. A fun, beginner-friendly project to learn dynamic web development concepts. #WebDevelopment #JavaScript #HTML #CSS #CoderArmy #RohitNegi #Day16Project5 #DigitalClock #InteractiveWebApp #BeginnerFriendly
To view or add a comment, sign in
-
Understanding DOM Manipulations in JavaScript 🌟 Today I explored DOM (Document Object Model) Manipulation — one of the most important concepts in web development! 💻 The DOM represents the structure of a webpage as a tree of HTML elements, allowing JavaScript to access, modify, and update content dynamically. Here are some key methods I learned: 🔹 getElementById() – Selects an element by its ID. 🔹 getElementsByClassName() – Selects all elements with a specific class. 🔹 getElementsByTagName() – Selects elements by their tag name. 🔹 getElementsByName() – Selects elements using their name attribute. 🔹 querySelector() – Selects the first element that matches a CSS selector. 🔹 querySelectorAll() – Selects all elements that match a CSS selector. Example 👇 document.getElementById("demo").innerHTML = "Hello DOM!"; document.querySelector(".btn").style.color = "blue"; ✨ With DOM manipulation, we can create interactive, dynamic, and user-friendly web pages that respond instantly to user actions! #JavaScript #WebDevelopment #Frontend #Learning #DOM #Coding
To view or add a comment, sign in
-
-
: 🧠 Explanation (for your video) In this video, I created a simple Light and Dark Mode Toggle using HTML, CSS, and JavaScript. When the button is clicked, the background color and text color switch between light and dark themes dynamically. HTML defines the structure — it includes a heading and a button. CSS styles the page, centers the content, and adds color and shape to the button. JavaScript handles the functionality — when the user clicks the button, it changes the background, text color, and button label based on the mode. This project helps beginners understand how to connect HTML, CSS, and JS together to make an interactive web page. 💬 Comment (for posting or describing the project) 🚀 Light & Dark Mode Toggle using JavaScript A simple yet cool project that switches between light and dark themes with just one click! 🌗 This small project helped me practice DOM manipulation and event handling in JavaScript. #JavaScript #FrontendDevelopment #WebProjects #CodingJourney #LightDarkMode 10000 Coders Manoj Kumar Reddy Parlapalli Usha Sri
To view or add a comment, sign in
-
🚀 Stop Writing Basic CSS: The 4 Combinators You Need to Master Today Are you still relying on just element, class, and ID selectors? If you're ready to level up your front-end development, mastering CSS combinators is the key to writing cleaner, more powerful, and less fragile code. Combinators allow you to define the relationship between elements, not just the elements themselves, giving you surgical precision in your styling. Here are the 4 essential combinators and one crucial selector you should be using: 1. Descendant Selector (Space) Syntax: .parent .child What it does: Selects all descendants (children, grandchildren, etc.) of the first element. 2. Child Selector (>) Syntax: .parent > .child What it does: Selects only the direct children of the first element. This is essential for controlling styling without accidentally targeting deeply nested elements. 3. Next Sibling Selector (+) Syntax: .element + .next-element What it does: Selects the element that immediately follows the first element (e.g., applying a margin only to a paragraph that follows a heading). 4. Subsequent Sibling Selector (~) Syntax: .element ~ .any-following-element What it does: Selects any element that follows the first element, regardless of whether it's the immediate next one. Bonus: Attribute Selectors ([attribute]) Syntax: a[target="_blank"] or [data-sale="true"] Why it matters: Style elements based on any HTML attribute they possess. This is powerful for styling external links (target="_blank") or for accessibility purposes (like aria-current="page")—all without adding extra classes! Stop fighting specificity wars and start writing CSS that is both robust and easy to maintain. #CSS #FrontEnd #WebDevelopment #Coding #Developer #HTML #CSS3 #TechSkills
To view or add a comment, sign in
-
-
💻 Just built a small card project using HTML, CSS & JavaScript! I recently created a simple UI project where users can fill a form to add new cards dynamically. Each card shows user info like name, hometown, and category — and everything is stored in localStorage so it stays even after refresh. It was a great learning experience for me to understand how data is saved, retrieved, and displayed using JavaScript DOM manipulation. Still improving it step by step — adding more features soon 🚀 If you’ve worked on something similar, I’d love to hear your thoughts or suggestions! https://lnkd.in/d2K-VUZQ #HTML #CSS #JavaScript #LearningByDoing #FrontendDevelopment
To view or add a comment, sign in
-
Task-2 💻✨ Simple Calculator using HTML, CSS & JavaScript I have built a Basic Calculator Project using HTML, CSS, and JavaScript. This calculator performs all arithmetic operations such as addition, subtraction, multiplication, division, and percentage. 🔹 Features Included: ✅ Responsive and modern UI design ✅ Supports all arithmetic operations (+, −, ×, ÷, %) ✅ Clear (C) and Delete (DEL) buttons ✅ Real-time calculation using eval() ✅ Keyboard input support (numbers, operators, Enter, Backspace) 🎨 Tech Used: HTML | CSS | JavaScript ⚡ Output Highlights: Example 1: 7 + 3 = 10 Example 2: 9 -4=5 Example 3:6*8=48 Example 4: (8 ÷ 2) =4 📹 Project Demo: 💬 I really enjoyed building this small project to strengthen my frontend development skills. CodeAlpha #HTML #CSS #JavaScript #WebDevelopment #Frontend #Coding #CalculatorProject #LearningByDoing #MiniProject #StudentDeveloper Github link🔗:https://lnkd.in/gw6G8h_a
To view or add a comment, sign in
-
Character Frequency Counter: The Character Frequency Counter is a simple web-based tool built using HTML, CSS, and JavaScript that analyzes user input text and displays how many times each character appears in real time. It features a clean, responsive design with a gradient background and centered layout. The JavaScript function dynamically counts characters as the user types and shows the results neatly in a result box. It is a lightweight, client-side project ideal for learning basic DOM manipulation and text processing in JavaScript.
To view or add a comment, sign in
-
🚀 Word & Character Counter using HTML, CSS, and JavaScript | Real-Time Text Analyzer 💻 I’ve built a simple yet interactive Word and Character Counter using HTML, CSS, and JavaScript 🎯 ✨ Features: 1. Real-time counting of words and characters 2. Animated heart effect ❤️ 3. Clean and responsive UI 4. Beginner-friendly logic using addEventListener() and DOM manipulation This project helped me improve my JavaScript event handling and string manipulation skills. Perfect for beginners learning front-end development and DOM interaction. 💡 Tech Stack: 🔸 HTML 🔸 CSS 🔸 JavaScript If you liked this mini project, drop a ❤️ and share your thoughts! #JavaScript #FrontendDevelopment #WebDevelopment #CodingProjects #HTML #CSS #LearningByDoing #Programmers #codeWithYousuf
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
keep it up