1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Load Values on Implicit JavaScript Arrow Function Returns

    javascriptJavaScript

    Using console.log() in arrow functions with implicit returns is usually a huge pain as you need to add curly bracers every time you want to peek at something before returning it. JavaScript short circuit OR operator makes it seamless and easy to place some logs on-demand where you need them.