From 4d0ef7ab9a3b112c3da33f143cd7bfeb9dd1028e Mon Sep 17 00:00:00 2001 From: Saradha Date: Sat, 19 Aug 2023 18:21:30 -0500 Subject: [PATCH] Exercises for understanding comments --- how-to-write-code/Comments.js | 10 ++++++++-- how-to-write-code/consolelogexamples01.js | 2 +- how-to-write-code/consolelogexamples02.js | 1 + 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/how-to-write-code/Comments.js b/how-to-write-code/Comments.js index 4e4c3c8674..1800430656 100644 --- a/how-to-write-code/Comments.js +++ b/how-to-write-code/Comments.js @@ -1,7 +1,13 @@ - // This demo shows off comments! + // This demo shows off comments! - // console.log("This does not print."); + //console.log("This does not print."); + // this is to test a single line comment + /* this + is + to + test + multi line*/ console.log("Hello, World!"); // Comments do not have to start at the beginning of a line. /* Here is how diff --git a/how-to-write-code/consolelogexamples01.js b/how-to-write-code/consolelogexamples01.js index b2fefb06d1..024dc0934f 100644 --- a/how-to-write-code/consolelogexamples01.js +++ b/how-to-write-code/consolelogexamples01.js @@ -3,4 +3,4 @@ console.log(2001); console.log("What","do","commas","do?"); console.log("Does", "adding", "space", "matter?"); console.log('Launch' + 'Code'); -console.log("LaunchCode was founded in", 2013); +console.log("LaunchCode was founded in", 2013) diff --git a/how-to-write-code/consolelogexamples02.js b/how-to-write-code/consolelogexamples02.js index 68a0086b7d..bbab1dd093 100644 --- a/how-to-write-code/consolelogexamples02.js +++ b/how-to-write-code/consolelogexamples02.js @@ -1,3 +1,4 @@ console.log("Some Programming Languages:"); console.log("Python\nJavaScript\nJava\nC#\nSwift"); +console.log("Python\tJavaScript\tJava\tC#\tSwift");