Skip to content
This repository has been archived by the owner on Feb 9, 2025. It is now read-only.

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tungstengmd authored Mar 13, 2024
1 parent 6360119 commit d6ed41a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ test and the number detector.") sleep(1) startScript = prompt("Which script shou
alert(`The answer is ${number1 * number2}.`);
break;
case "2":
colour = prompt("What's your favourite colour?");;
colour = prompt("What's your favourite colour?");
document.write(`Your favourite colour is ${colour}.`);
break
break;
case "3":
firstName = prompt("What's your first name?");
lastName = prompt("What's your last name?");
Expand All @@ -27,6 +27,7 @@ test and the number detector.") sleep(1) startScript = prompt("Which script shou
hourlyRate = prompt("Input your hourly rate.");
hoursWorked = prompt("Input how long you work.");
alert(`Your weekly pay is £${hourlyRate * hoursWorked} per week.`);
break;
case "6":
housenumber = prompt("Enter your house number.");
street = prompt("Enter your street.");
Expand Down

0 comments on commit d6ed41a

Please sign in to comment.