coding...?

E
so im learnign how to code javascript is there a free like... way to run my code? lowk been writing in google docs and if anyone wants so see it, its below ig also edit: this isn't my actual info TvT my legal name isnt trinity natsumi. trinity is my preffered name, not legal name, and i dont go by natsumi, i just made that up. i dont actually go to bryan county high school. i made it up, based off of a typo of brian griffin, from family guy. ``` const firstName = "Trinity"; const lastName = "Natsumi"; const age = 15; const mainInstrument = "Euphonium"; const secondaryInstrument = "Tuba"; const thirdInstrument = "Trombone"; const schoolName = "Bryan County High School"; let location = "Bed"; let mood = "Sleepy"; let time = "5:30"; let currentActivity = "Sleeping"; let falls = 0; // okay now lets start this! // Trinity wakes up at 5:30, her alarm blaring. Panicking, she falls out of bed. falls++; mood = "Mildly agitated"; location = "Floor"; // Some time passes time = "6:45"; mood = "Sleepy"; location = "Bathroom"; currentActivity = "Fixing her hair"; // She grabs food; time = "7:00"; mood = "Happy"; location = "Table"; currentActivity = "Eating"; // time passes; time = "7:15"; mood = "Full"; if (mood === "Full") { location = "Busy sidewalk"; currentActivity = "Walking to school" } else if (mood === "Still hungry") { location = "Pantry" currentActivity = "Grabbing a snack" } time = "7:20" location = "Busy sidewalk" currentActivity = "Walking to school" // Trinity checks her watch console.log("Trinity checks her watch... she's early!") let userChoice = prompt("Do you: (A) Stop at Starbucks or (B) Go straight to school?").toUpperCase() while (userChoice !== "A" && userChoice !== "B") { userChoice = prompt("Invalid choice! Please type A or B").toUpperCase() } if (userChoice === "A") { location = "Starbucks" time = "8:05" mood = "Happy" currentActivity = "Grabbing coffee" console.log("Well, I have coffee now! But... I'm late. Meh, oh well. Worth it.") } else if (userChoice === "B") { location = "School" time = "7:30" mood = "Bored" currentActivity = "Waiting outside" console.log("Ugh, I'm so bored...") } ```
+1
Replies 10

Please Log In or Sign Up to comment on this thread.