DEV Community

Discussion on: Simple Countdown Timer using JavaScript

 
anubarak profile image
Robin Schambach

I see thank you for your detailed explanation. Maybe I should have asked my question in a different way 😅

I know that pattern but I don't like it that much.
The question should be more like "I don't get the advantage over calling one single method with multiple arguments" as it requires less memory in larger scales. When you have a loop or use this pattern in a recursion I think it's not worth it (of course in this case without something else it is trivial). If I really need such a case I prefer classes over that pattern as it's easier to read at the very first glance (when you have to dig through several hundred lines of code within a few seconds)

I guess it all depends on person preferences and what people are used too. Then again thanks for your code I bet it helps many people.