Skip to content

Commit

Permalink
apparently console is redundant?
Browse files Browse the repository at this point in the history
  • Loading branch information
tungstengmd committed May 15, 2024
1 parent 7d9a75e commit 0a206ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
console.log("What are you doing around here?");
log("What are you doing around here?");
startScript = prompt("Which script should be started? Answer with 1 to 11 respectively. The scripts are: the multiplier, the one that states your favourite colour, the name swapper, the little test I made, the weekly pay calculator, the address formatter, the Uber® fare calculator, my while loop test, the number detector, the time table reciter and the calculator.");
switch (startScript) {
case "1":
Expand Down Expand Up @@ -39,15 +39,15 @@ switch (startScript) {
time = parseFloat(prompt("How long will it take?") * 0.1);
fare = time + distance + 1.1;
if (fare < 2.5) {
console.error("PRICE TOO LOW; SWITCHING TO MINIMUM FARE...");
error("PRICE TOO LOW; SWITCHING TO MINIMUM FARE...");
alert("Your fare is £2.50");
} else {
alert(`Your fare is £${fare.toFixed(1)}0.`);
}
break;
case "8":
random = Math.floor(Math.random() * 10);
console.log(`Shh! The number is ${random}. Don't tell anyone!`);
log(`Shh! The number is ${random}. Don't tell anyone!`);
guess = prompt("Guess my lucky number!");
times = 1;
while (guess != random) {
Expand All @@ -57,10 +57,10 @@ switch (startScript) {
guess = prompt("Wrong! The answer is lower!");
}
times++;
console.error("You suffer from a severe case of skill issue.");
error("You suffer from a severe case of skill issue.");
}
alert("YIPPEEEEEEEEEEEEEEEEE!!!!!!!!!!!!!");
console.log(`The amount of tries needed for this to succeed were: ${times}`);
log(`The amount of tries needed for this to succeed were: ${times}`);
break;
case "9":
number = prompt("Gimme a number.");
Expand Down

0 comments on commit 0a206ef

Please sign in to comment.