From 9e7eae2a1f14a7ee7f97934f5eec629cd1ff793d Mon Sep 17 00:00:00 2001 From: Jason Alvarez Date: Mon, 28 Sep 2020 00:01:49 +0000 Subject: [PATCH 1/3] fixed grammer errors --- README.md | 8 ++++---- helloworld.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7599585..50aa86d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # 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 like a bunch of cool functions and stuff. ## helloWorld() @@ -8,10 +8,10 @@ spits out the text 'Hello, World" to the console. ## helloName(name) -takes a var and then it says "Hello, Ann" if name is "Ann". +takes a variable and then it says "Hello, Ann" if name is "Ann". It essentially addes the given name after saying hello. ## Instrcutions 1. fork this repositary. -3. Clone your forked repo to ur local machine with `git clone`. -4. In ur command line terminal, `cd` into the folder and run `node helloworld.js`. +3. Clone your forked repo to your local machine with `git clone`. +4. In your command line terminal, `cd` into the folder and run `node helloworld.js`. diff --git a/helloworld.js b/helloworld.js index e8a25b0..bfccc49 100644 --- a/helloworld.js +++ b/helloworld.js @@ -1,11 +1,11 @@ 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") +helloWorld(); +helloName("Ann"); From 2ce87c8c0d4d8b1f8dadb52c49b10a245e08f009 Mon Sep 17 00:00:00 2001 From: Jason Alvarez Date: Mon, 28 Sep 2020 00:08:03 +0000 Subject: [PATCH 2/3] misspelled hello --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 50aa86d..043480e 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ spits out the text 'Hello, World" to the console. takes a variable and then it says "Hello, Ann" if name is "Ann". It essentially addes the given name after saying hello. -## Instrcutions +## Instructions 1. fork this repositary. 3. Clone your forked repo to your local machine with `git clone`. From b13d197e3a7cb7746d706a3ca83c39fe92a83518 Mon Sep 17 00:00:00 2001 From: Jason Alvarez Date: Thu, 1 Oct 2020 20:57:20 +0000 Subject: [PATCH 3/3] fixed a few more grammer errors and got rid of comments --- README.md | 8 ++++---- helloworld.js | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 043480e..3956283 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ # Hello WorLd -This is an awesome JavaScript program that has like a bunch of cool functions and stuff. +This is an awesome JavaScript program that has two functions and calls those functions. ## helloWorld() -spits out the text 'Hello, World" to the console. +This function outputs the text 'Hello, World" to the console. ## helloName(name) -takes a variable and then it says "Hello, Ann" if name is "Ann". It essentially addes the given name after saying hello. +This function takes a variable and then it says "Hello, Ann" if the name is "Ann". It essentially addes the given name after saying hello. ## Instructions -1. fork this repositary. +1. Fork this repositary. 3. Clone your forked repo to your local machine with `git clone`. 4. In your command line terminal, `cd` into the folder and run `node helloworld.js`. diff --git a/helloworld.js b/helloworld.js index bfccc49..878e72f 100644 --- a/helloworld.js +++ b/helloworld.js @@ -1,11 +1,11 @@ function helloWorld(){ - console.log("Hello, World"); //I don't know why this doesn't work. + console.log("Hello, World"); } function helloName(name){ - console.log(`Hello, ${name}`); //Idk why it prints out "Hello, $name" instead of "Hello, Ann" + console.log(`Hello, ${name}`); } -//Tried to invoke both functions here but I get an error :( + helloWorld(); helloName("Ann");