Skip to content

Commit

Permalink
🎨 Remove and improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tungstengmd committed Mar 5, 2024
1 parent 33aac68 commit 385b710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ switch (startScript) {
case "1":
number1 = prompt("What number do you wish to multiply?")
number2 = prompt("What are you multiplying it by?")
alert(`The answer is ${number1 * number2}.`) //answer :woohoo:
alert(`The answer is ${number1 * number2}.`)
break
case "2":
colour = prompt("What's your favourite colour?")
Expand Down Expand Up @@ -35,7 +35,7 @@ switch (startScript) {
housenumber = prompt("Enter your house number.")
street = prompt("Enter your street.")
town = prompt("Enter your town.")
town = town.charAt(0).toUpperCase + town.slice(1) //capitalises first letter
town = town.charAt(0).toUpperCase + town.slice(1) //capitalises first letter by slicing it off and replacing it
house = housenumber + ", " + street + ", " + town
alert(`You live at ${house}.`)
break
Expand Down

0 comments on commit 385b710

Please sign in to comment.