How to make a fortune teller

const fortune1 = “Your cat will look very cuddly today.”;

const fortune2 = “The weather will be nice tomorrow.”;

const fortune3 = “Be cautious of your new neighbors.”;

const fortune4 = “You will find a new hobby soon.”;

const fortune5 = “It would be wise to avoid the color red today.”

let maxNum = 5;

let minNum = 1;

let randomNumber = (Math.random().ceil)

let selectedFortune = 3;

if (randomNumber == 1) {

console.log(fortune1)

}

if (randomNumber == 2) {

console.log(fortune2)

}

if (randomNumber == 3) {

console.log(fortune3)

}

if (randomNumber == 4) {

console.log(fortune4)

}

if (randomNumber == 5){

console.log(fortune5)

}

console.log(selectedFortune)

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

I’ve edited your post to improve the readability of the code. When you enter a code block into a forum post, please precede it with three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add the backticks.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').