Skip to content

Commit 042e981

Browse files
author
Edward King
committed
User input updated
1 parent 4c0a6ca commit 042e981

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

how-to-write-code/consolelogexamples01.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,9 @@ let name = input.question("Enter your name: ");
2828

2929
let lastName = input.question("Enter your last name: ");
3030

31-
console.log("Hello "+name+" " +lastName+"!");
31+
console.log("first name: ",name);
32+
console.log("last name: ",lastName);
33+
console.log("last,first: ",lastName+","+name);
34+
35+
3236

0 commit comments

Comments
 (0)