Home | Mailing List | Blog | Tutorial Videos

Short-Circuit Notification(s)

Let's display some notifications to our user! What gets logged in the following snippet?

const notifications = 1;

console.log(
  `You have ${notifications} notification${notifications !==
    1 && 's'}`
);

Select one: