This repository was archived by the owner on Jan 14, 2024. It is now read-only.
South Africa - Ulrich Ernstzen#58
Closed
ULLIE2298 wants to merge 1 commit into
Closed
Conversation
DouglasVDM
reviewed
Jan 22, 2021
|
|
||
| console.log(greeting); | ||
| var greeting = "Hello World!"; | ||
| console.log(greeting + "\n" + greeting + "\n" + greeting); |
There was a problem hiding this comment.
I don't know what "\n" does, but I'm guessing that it allows you to use 1 console.log to output your greeting 3times. I'm going to try it next time. Amazing to see the many different ways of doing the same task, Great work.
Author
|
"\n" creates a new line, so without it, it will show '3 Hello World'
…On Fri, 22 Jan 2021, 7:04 PM DouglasVDM ***@***.***> wrote:
***@***.**** commented on this pull request.
Ulrich great work on completed the exercises!
------------------------------
In exercises/C-variables/exercise.js
<#58 (comment)>
:
> @@ -1,3 +1,3 @@
// Start by creating a variable `greeting`
-
-console.log(greeting);
+var greeting = "Hello World!";
+console.log(greeting + "\n" + greeting + "\n" + greeting);
I don't know what "\n" does, but I'm guessing that it allows you to use 1
console.log to output your greeting 3times. I'm going to try it next time.
Amazing to see the many different ways of doing the same task, Great work.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#58 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR2GG35ME5FR62LAPD3P73LS3GV2ZANCNFSM4WOQ2MBA>
.
|
|
Your coursework submission has been closed because nobody has interacted with it in 30 days. You are welcome to re-open it to get more feedback. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Your Details
Homework Details