Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: quotation marks #76

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions 3-conditionals/15-magic-8-ball.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ const randomNumber = Math.floor(Math.random() * 9) + 1;
let answer = "";

if (randomNumber === 1){
answer = 'Yes - definitely';
answer = "Yes - definitely";
} else if (randomNumber === 2) {
answer = 'It is decidedly so';
answer = "It is decidedly so";
} else if (randomNumber === 3) {
answer = 'Without a doubt';
answer = "Without a doubt";
} else if (randomNumber === 4) {
answer = 'Reply hazy, try again';
answer = "Reply hazy, try again";
} else if (randomNumber === 5) {
answer = 'Ask again later';
answer = "Ask again later";
} else if (randomNumber === 6) {
answer = 'Better not tell you now';
answer = "Better not tell you now";
} else if (randomNumber === 7) {
answer = 'My sources say no';
answer = "My sources say no";
} else if (randomNumber === 8) {
answer = 'Outlook not so good';
answer = "Outlook not so good";
} else if (randomNumber === 9) {
answer = 'Very doubtful';
answer = "Very doubtful";
} else {
answer = 'Error';
answer = "Error";
}

console.log("Question: ", question);
Expand Down