From 869da2e562c8106d57093e4eb119a81bffaf88ff Mon Sep 17 00:00:00 2001 From: tungstengmd Date: Wed, 15 May 2024 09:41:14 +0100 Subject: [PATCH] I am so smart --- script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.js b/script.js index 2423316..cec88cb 100644 --- a/script.js +++ b/script.js @@ -13,7 +13,7 @@ switch (startScript) { case "3": firstName = prompt("What's your first name?"); lastName = prompt("What's your last name?"); - document.write(lastName + " " + firstName); + document.write(`${lastName} ${firstName}`); break; case "4": //this was an if statement test alert("Hello! This is a text box. I think it's kinda neat.");