diff --git a/README.md b/README.md index 7599585..6fa128d 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # 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() -spits out the text 'Hello, World" to the console. +spits out the text "Hello, World" to the console. ## helloName(name) 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");