DEV Community

Discussion on: Javascript Tips for Beginners

Collapse
 
hb profile image
Henry Boisdequin

Great tips! I agree that the nested ternary operators are confusing but I just wanted to show that an if, else if, and else statement is possible with ternary operators. The way you did it is much cleaner.