Developed JS Mini Projects: Faulty Calculator and Boxes Color Project

Web Development Update – JS Mini Project: To strengthen our understanding of JavaScript, we developed two small but effective projects that allowed us to apply the concepts we learned in a practical way. -> Faulty Calculator: In this project, we used the Math.random() function to generate a random number between 1 and 10. If the number generated is greater than 1, the calculator provides correct results; if not, it gives incorrect answers. This helped us understand conditional statements, random number generation, and function logic in JavaScript. -> Boxes Color Project: Here, we used the DOM and Math.random() to generate three random numbers between 0 and 256, which were then combined into an RGB color format using string concatenation. Each box on the webpage is assigned a random color, and by clicking a button, the colors change dynamically since new random values are generated every time. These mini projects were great exercises for applying JavaScript fundamentals, particularly DOM manipulation, event handling, and randomization logic. GitHub: https://lnkd.in/euDPucHx #WebDevelopment #JavaScript #FrontendProjects #CodingPractice #Programming #LearningByDoing

To view or add a comment, sign in

Explore content categories