From 39a4a948e6f568ffcaf394808fafe4d2f033026b Mon Sep 17 00:00:00 2001 From: Jarrit Date: Sat, 26 Sep 2020 23:15:20 +0000 Subject: [PATCH 1/3] Fixed README.md and helloworld.js --- README.md | 6 +++--- helloworld.js | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7599585..6272150 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@ # Hello WorLd -This is an aw esome javaScript program that has like a bunch of cool functions and stuff. +This is an awesome javaScript program. That has two working functions. ## helloWorld() -spits out the text 'Hello, World" to the console. +It logs the text "Hello, World" to the console. ## helloName(name) -takes a var and then it says "Hello, Ann" if name is "Ann". +This takes a perameter and then it says "Hello, Ann" if name is equal to "Ann". ## Instrcutions diff --git a/helloworld.js b/helloworld.js index e8a25b0..06ce562 100644 --- a/helloworld.js +++ b/helloworld.js @@ -1,11 +1,12 @@ function helloWorld(){ - console.print("Hello, World"); //I don't know why this doesn't work. + console.log("Hello, World"); //I don't know why this doesn't work. } function helloName(name){ - console.log(`Hello, $name`); //Idk why it prints out "Hello, $name" instead of "Hello, Ann" + console.log(`Hello, ${name}`); //Idk why it prints out "Hello, $name" instead of "Hello, Ann" } //Tried to invoke both functions here but I get an error :( helloWorld() helloName("Ann") + From 96c7185bcf615d24dc0d52e7036b0df02eb78f4b Mon Sep 17 00:00:00 2001 From: Jarrit Date: Sat, 26 Sep 2020 23:17:34 +0000 Subject: [PATCH 2/3] Fixed README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6272150..16abb24 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Hello WorLd -This is an awesome javaScript program. That has two working functions. +This is an awesome javaScript program. It has two working functions. ## helloWorld() From 9f15b78d98cd1f6ddbab13e87c0bbd0634e83f30 Mon Sep 17 00:00:00 2001 From: Jarrit Date: Sat, 26 Sep 2020 23:20:00 +0000 Subject: [PATCH 3/3] All done with README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 16abb24..e3874cf 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,11 @@ This is an awesome javaScript program. It has two working functions. ## helloWorld() -It logs the text "Hello, World" to the console. +This function logs the text "Hello, World" to the console. ## helloName(name) -This takes a perameter and then it says "Hello, Ann" if name is equal to "Ann". +This function takes a perameter and then it says "Hello, Ann" if name is equal to "Ann". ## Instrcutions