💻✨ JavaScript Function Practice – Task Completed! This week, I focused on improving my function-building skills in JavaScript through hands-on coding challenges. Each task helped me apply logic, handle edge cases, and write cleaner, reusable code. Here’s what I worked on 👇 🟢 1. Greeting Function greetUser(name, times) — Greets a user multiple times and shows a warning if the count is invalid. 🟢 2. Rectangle Area & Perimeter calcRectangle(width, height) — Returns both area and perimeter of a rectangle, with error handling for invalid dimensions. 🟢 3. Flexible String Repeater repeatString(str, count, separator) — Builds a repeated string with a custom or default separator. 🟢 4. Parameterized Filter Function filterByLength(wordList, minLen, maxLen) — Filters an array of strings based on minimum and maximum word lengths, automatically swapping limits if needed. 🟢 5. Parameterized Calculator Function calculate(a, b, operation) — Performs add, subtract, multiply, or divide operations with smart error handling for zero division or invalid inputs. Each task strengthened my understanding of: ✅ Function parameters & return values ✅ Error handling & validation ✅ Logical problem-solving 💬 Excited to keep practicing and building more JavaScript-based utilities! #JavaScript #CodingPractice #WebDevelopment #ProblemSolving #LearnToCode #Functions #DeveloperJourney #JS #Coding #Coding #10000coders #spandanachowdary #MeghanaM

To view or add a comment, sign in

Explore content categories