Don’t Use If-Else and Switch in JavaScript, Use Object Literals
By Rex Murray at Apr 19 2021
JavaScript if else and else if
By Loren Greenholt at Feb 26 2021
if and if and else javascript
By Shawn Rath at Dec 08 2020