6 JavaScript Code Snippets For Solving Common Problems
Published in
4 min readJul 2, 2020
Like many programming languages, JavaScript has its flaws and quirks. Built-in functions or syntax you think should be there just isn’t. Output from even the most basic input can border on insanity (what’s true + true
?). Even basic things like loops behave differently than one might expect.
Though JavaScript behaves strangely from time to time, it is still one of the…