Skip to content

Commit cac70e6

Browse files
Merge pull request LaunchCodeEducation#4 from LaunchCodeEducation/pre-work-starter-code
added pre-work-starter-code
2 parents e0f20f8 + 16080f0 commit cac70e6

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

how-to-write-code/Comments.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This demo shows off comments!
2+
3+
// console.log("This does not print.");
4+
5+
console.log("Hello, World!"); // Comments do not have to start at the beginning of a line.
6+
7+
/* Here is how
8+
to have
9+
multi-line
10+
comments. */
11+
12+
console.log("Comments make your code more readable by others.");
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
console.log('Hello, JavaScript.');
2+
console.log(2001);
3+
console.log("What","do","commas","do?");
4+
console.log("Does", "adding", "space", "matter?");
5+
console.log('Launch' + 'Code');
6+
console.log("LaunchCode was founded in", 2013);
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
console.log("Some Programming Languages:");
2+
3+
console.log("Python\nJavaScript\nJava\nC#\nSwift");

0 commit comments

Comments
 (0)