Skip to main content

Edit It: Use Ternary Operator to Log String on the Console

This code shows how to use JavaScript's ternary operator to log a string on the browser's console.

See it on StackBlitz