Menu Home

ternary operator

Hi everyone, and welcome to another exciting edition of Boring JavaScript! Today I take on the Ternary operator. What’s a ‘ternary’, you ask? It’s a simplified and compact way to specifying a simple ‘if/else’ statement. It makes your code easier to read and easier to understand. But be careful not to overuse them! I love them, and use them all the time. Watch the video and check it out.

Shameless Plug

Check out all our videos at:

Github Repository:

Check out everything at:





Categories: Boring JavaScript


Web Tinkerer. No, not like Tinkerbell.

Creator of the game Virtuoid. Boring JavaScript. Visit us at

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: