forked from LaunchCodeEducation/js-hello-world
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hello.js
29 lines (26 loc) · 1.1 KB
/
hello.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
Welcome, new coder.
Enter your code on line 7 to print 'Hello, World!'
to the console (the panel on the right)
*/
console.log("Hello");
console.log("Hal9000")
console.log("2+2=4");
console.log("Multiple Messages Have Been Printed. I am certain.");console.log("But are they in succession?");
console.log("...Obviously.");
console.log('"What are you doing, Dave"');
console.log("9/9");
console.log("Please just accept my git push!");
/*
Next, PLAY!
Modify your code on line 7 to try to accomplish the tasks listed below:
1. Change the message that is printed.
2. Figure out what the parentheses do. Will the code work without them?
3. Remove one or both quotation marks. Do we need to include both opening and closing quote marks? Is there a difference between using a single or a double quote (' vs. ")?
4. Remove the semi-colon, ;.
5. Print a number. (Bonus: Print two numbers added together).
6. Print multiple messages one after the other.
7. Print two messages on the same line.
8. Print a message that contains quote marks, such as Quoth the Raven "Nevermore".
9. Other. You choose!
*/