From 05eed306e0e50b4ada9b1189b01acdea735e78fc Mon Sep 17 00:00:00 2001 From: Msinfiniti50 <153966011+Msinfiniti50@users.noreply.github.com> Date: Tue, 19 Dec 2023 17:57:04 -0600 Subject: [PATCH 1/3] now says HELLO World --- My First code.js | 12 ++++++++++++ hello.js | 34 ++++++++++++---------------------- 2 files changed, 24 insertions(+), 22 deletions(-) create mode 100644 My First code.js diff --git a/My First code.js b/My First code.js new file mode 100644 index 0000000..53c01f9 --- /dev/null +++ b/My First code.js @@ -0,0 +1,12 @@ + + + + + + +console.log("Hello World!"); + + + + + diff --git a/hello.js b/hello.js index 6f10866..b6a7eac 100644 --- a/hello.js +++ b/hello.js @@ -1,22 +1,12 @@ -/* -Welcome, new coder. -Enter your code on line 7 to print 'Hello, World!' -to the console (the panel on the right) -*/ - -console.log("Hello"); - -/* -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! -*/ \ No newline at end of file + + + + + + +console.log('Hello, World!'); + + + + + From 85c0081fc3041b0d51921a74a273c2dca24152a6 Mon Sep 17 00:00:00 2001 From: Msinfiniti50 <153966011+Msinfiniti50@users.noreply.github.com> Date: Tue, 19 Dec 2023 19:11:48 -0600 Subject: [PATCH 2/3] First Program --- My First code.js | 4 ++-- hello.js | 11 +++++++++++ package-lock.json | 24 ++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 package-lock.json diff --git a/My First code.js b/My First code.js index 53c01f9..0edd5b6 100644 --- a/My First code.js +++ b/My First code.js @@ -4,8 +4,8 @@ -console.log("Hello World!"); - +console.log("Hello Worldd!"); +console.log('Hello, my name is Janellq'); diff --git a/hello.js b/hello.js index b6a7eac..ee0f744 100644 --- a/hello.js +++ b/hello.js @@ -7,6 +7,17 @@ console.log('Hello, World!'); +console.log('Hello, my name is Tunisia'); +//console.log"Say my name, say my name";This is a syntax error, the parentheses are needed to make the code work properly.// + + + +//consolw.log('Hayyy')The parentheses are needed to make a string but not numbers to work properly.// +console.log(5+5+5) +console.log(4);console.log(5+5); +console.log('Monday,Tuesday,Wednesday,Thursday,Friday'); +console.log('This has been a great day' + ' I am learning so much'); +console.log("Quoth the Raven \"Nevermore\""); diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..bab5a83 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,24 @@ +{ + "name": "hello-world", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "hello-world", + "version": "1.0.0", + "license": "ISC", + "dependencies": { + "readline-sync": "^1.4.10" + } + }, + "node_modules/readline-sync": { + "version": "1.4.10", + "resolved": "https://registry.npmjs.org/readline-sync/-/readline-sync-1.4.10.tgz", + "integrity": "sha512-gNva8/6UAe8QYepIQH/jQ2qn91Qj0B9sYjMBBs3QOB8F2CXcKgLxQaJRP76sWVRQt+QU+8fAkCbCvjjMFu7Ycw==", + "engines": { + "node": ">= 0.8.0" + } + } + } +} From 2946bfc0b2bfe53489a93b5df78b245002ed9f0e Mon Sep 17 00:00:00 2001 From: Msinfiniti50 <153966011+Msinfiniti50@users.noreply.github.com> Date: Fri, 22 Dec 2023 22:39:57 -0600 Subject: [PATCH 3/3] Update My First code.js My homework --- My First code.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/My First code.js b/My First code.js index 0edd5b6..ee0f744 100644 --- a/My First code.js +++ b/My First code.js @@ -4,9 +4,20 @@ -console.log("Hello Worldd!"); -console.log('Hello, my name is Janellq'); +console.log('Hello, World!'); +console.log('Hello, my name is Tunisia'); +//console.log"Say my name, say my name";This is a syntax error, the parentheses are needed to make the code work properly.// + + + +//consolw.log('Hayyy')The parentheses are needed to make a string but not numbers to work properly.// +console.log(5+5+5) +console.log(4);console.log(5+5); +console.log('Monday,Tuesday,Wednesday,Thursday,Friday'); +console.log('This has been a great day' + ' I am learning so much'); +console.log("Quoth the Raven \"Nevermore\""); +