re: Clean up your code with these tips! VIEW POST

re: I am not familiar with JS since I write in another language, but your example is clear enough to follow. Still, I did not find that the examples ...

For some of the people out there, this may not be a style they like. I also could have also went in to more detail as to why abstracting out the logic to constants can help clean up the code, with more scenarios. But for many people, they like this and it helped them. So it’s really about taking what works for you and leaving the rest behind.

code of conduct - report abuse