diff --git a/README.md b/README.md index 7599585..3956283 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ # 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 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 var and then it says "Hello, Ann" if name is "Ann". +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. -## Instrcutions +## Instructions -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`. +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 e8a25b0..878e72f 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"); } 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") + +helloWorld(); +helloName("Ann");