diff --git a/My First code.js b/My First code.js new file mode 100644 index 0000000..ee0f744 --- /dev/null +++ b/My First code.js @@ -0,0 +1,23 @@ + + + + + + +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/hello.js b/hello.js index 6f10866..ee0f744 100644 --- a/hello.js +++ b/hello.js @@ -1,22 +1,23 @@ -/* -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!'); + + +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" + } + } + } +}