6 JavaScript Code Snippets For Solving Common Problems

Tate Galbraith
Level Up Coding
Published in
4 min readJul 2, 2020

--

Photo by Joan Gamell on Unsplash

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…

--

--

Software Engineer @mixhalo & die-hard Rubyist. Amateur Radio operator with a love for old technology. Tweet at me: https://twitter.com/@Tate_Galbraith