Write an Inline IF Statement in JavaScript (with code)

Write an Inline IF Statement in JavaScript (with code)

More to explore

Based on this image's title: “Write an Inline IF Statement in JavaScript (with code)