Skip to content

My first #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions My First code.js
Original file line number Diff line number Diff line change
@@ -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\"");



45 changes: 23 additions & 22 deletions hello.js
Original file line number Diff line number Diff line change
@@ -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!
*/






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\"");



24 changes: 24 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.