Exercise 18

Rewrite the code, by using the ternary operator.

let number = 7;

if (number > 0) {

console.log("The number is positive");

} else console.log("The number is negative");