/* * What are your thoughts on nested conditionals? * replacing with if/else if/else statements removes your ability to use const * ESLint doesn't like them, but for cascading if/else flows, I think proper formatting * eliminates readability concerns */ const word = isFoo ? 'a' : // if isFoo isBar ? 'b' : // else if isBar isBaz ? 'c' : // else if isBaz 'd' ; // else