https://blog.sessionstack.com/how-javascript-works-the-different-types-of-conditional-statements-3-best-practices-756e7d3e275a