30 Days JavaScript Challenge : Day 10 ✅ Today’s problem was about creating a function that can be executed only once. The idea was to wrap a given function in such a way that: • it runs normally the first time • and returns undefined on every call after that It’s a small concept, but very useful in real scenarios where you want to prevent a function from running multiple times (like avoiding duplicate actions). 10 days in , just staying consistent and learning step by step. 💻🚀 #javascript #leetcode #webdevelopment #frontenddeveloper #codingchallenge #learninginpublic #developers #programming #100daysofcode
Wrap Function to Run Once: Day 10 of 100 Days of Code
More Relevant Posts
-
I just published my first blog on Dev.to! I wrote about the current value of JavaScript in 2026 and why it’s still one of the most important skills for developers. I’m still early in my learning journey, so I’d really appreciate any feedback or suggestions 🙌 Here’s the blog: https://lnkd.in/gqQkh-3a #JavaScript #WebDevelopment #LearningInPublic #Programming
To view or add a comment, sign in
-
30 Days JavaScript Challenge : Day 20 ✅ Today’s problem was about checking whether a given object or array is empty. At first glance, it looks very simply, but it makes you think about how data structures actually store values whether it’s checking keys in an object or elements in an array. Also tried to think about how this can be done efficiently, even aiming for O(1) time complexity. Problems like these remind me that even basic concepts can have deeper layers when you try to implement them properly. 20 days in consistency is building up, one problem at a time. 💻🚀 #javascript #leetcode #webdevelopment #frontenddeveloper #codingchallenge #learninginpublic #developers #programming #buildinpublic
To view or add a comment, sign in
-
-
30 Days JavaScript Challenge : Day 17 ✅ Today’s problem was about designing a Time Limited Cache. The idea was to store key-value pairs, but with a twist each key should expire after a certain time. The class needed to support: • setting values with an expiry • retrieving values only if they’re still valid • counting how many keys are currently active This felt closer to a real-world problem, especially how caching systems work with expiration. It was interesting to think about how to manage time, state, and updates together in a clean way. 17 days in learning not just syntax, but how to think through problems. 💻🚀 #javascript #leetcode #webdevelopment #frontenddeveloper #codingchallenge #learninginpublic #developers #programming #buildinpublic
To view or add a comment, sign in
-
-
Recently started learning Go. My current approach: solve the problem in JavaScript first, then implement the same solution in Go. Why? Because it lets me separate algorithmic thinking from learning a new syntax. It’s a simple process, but so far it feels effective: understand the logic first, then strengthen Go through practice. Small steps, but consistent ones. #GoLang #Go #Programming #SoftwareDevelopment #BackendDevelopment #Coding #JavaScript
To view or add a comment, sign in
-
-
30 Days JavaScript Challenge: Day 11 ✅ Today’s problem was about memoization , a concept where we store the result of a function call and reuse it when the same inputs come again. The goal was to return a memoized version of a function so that it doesn’t run multiple times for the same inputs and instead returns the cached result. It was interesting to see how this can optimize performance, especially for functions like factorial or fibonacci where repeated calculations can happen. Concepts like these show how small optimizations can make a big difference in real applications. 11 days in focusing on understanding not just how to write code, but how to write it efficiently. 💻🚀 #javascript #leetcode #webdevelopment #frontenddeveloper #codingchallenge #learninginpublic #developers #programming #buildinpublic
To view or add a comment, sign in
-
-
Learning JavaScript becomes much easier when concepts are visual and simple to understand. Which JavaScript array method do you use the most? #JavaScript #FrontendDevelopment #WebDevelopment #ReactJS #Programming #Coding #SoftwareDevelopment #JavaScriptTips #Developer #LearnToCode #FrontendDeveloper #100DaysOfCode #Tech #CodingLife #ReactDeveloper
To view or add a comment, sign in
-
-
Quick one for the developers in my network. CSS has methods most people either forget about or never got properly introduced to. And they show up constantly once you know what to look for. #CSS #WebDevelopment #FrontendDevelopment #Programming #TechEducation #LearnToCode #Developer #WebDesign #CodingTips #SoftwareEngineering
To view or add a comment, sign in
-
-
𝐃𝐚𝐲 𝟔/𝟏𝟓 𝐨𝐟 𝐦𝐲 𝐉𝐚𝐯𝐚𝐒𝐜𝐫𝐢𝐩𝐭 𝐉𝐨𝐮𝐫𝐧𝐞𝐲 🚀 6 days of consistency. Not perfect… But definitely better than Day 1. 💡 What I learned: Functions in JavaScript How to create and use functions Parameters and return values 🧠 What I understood: Instead of writing the same code again and again… We can use functions to reuse it. For example: If I want to add two numbers multiple times, I don’t need to write the logic again and again. I can just create a function and use it whenever needed. At first, I was confused about how parameters work… But after trying small examples, it became clearer. 📌 My biggest takeaway: Functions make code cleaner, shorter, and easier to manage. Still learning… Still improving… See you on Day 7 🚀 #JavaScript #CodingJourney #LearningInPublic #Day6 #Consistency #WebDevelopment #Programming #Developers
To view or add a comment, sign in
-
-
30 Days JavaScript Challenge: Day 25 ✅ Today’s problem was about merging two arrays of objects based on a common key (id). Sounds simple at first, but it had a few interesting parts: Handling unique ids Merging objects when ids match Making sure values from the second array override the first Keeping everything sorted It’s actually very close to real-world scenarios like combining data from two APIs or updating existing records with new data. Problems like this make you think more about data handling and structure, not just loops and conditions. Day by day, things are starting to connect better. 🚀 #javascript #leetcode #webdevelopment #frontenddeveloper #codingchallenge #learninginpublic #developers #programming #buildinpublic #JavaScriptMastery
To view or add a comment, sign in
-
-
30 Days JavaScript Challenge : Day 24 ✅ Today’s problem was about sorting an array using a custom function. Instead of directly sorting values, we use a function fn to decide the order — basically telling JavaScript how to compare elements. At first it feels simple, but it actually shows how powerful sorting can be when you control the logic: Sorting objects based on a property Sorting nested arrays Custom ranking based on conditions It’s one of those concepts that looks basic but is used everywhere in real projects. Slowly getting more clarity on how to write flexible and reusable logic in JavaScript. #javascript #leetcode #webdevelopment #frontenddeveloper #codingchallenge #learninginpublic #developers #programming #buildinpublic
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