From 3ab0157ecfc14e907e00cfd6dea002bae7e2ecbc Mon Sep 17 00:00:00 2001 From: jcp215033 Date: Thu, 29 Sep 2022 02:21:45 +0000 Subject: [PATCH] commiting 2 files --- README.md | 2 ++ helloworld.js | 12 ++++++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 4de6674..e5e5e07 100644 --- a/README.md +++ b/README.md @@ -19,3 +19,5 @@ helloName("Ann") 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`. + +"Once cloned, make improvements to both the README.md and helloworld.js files." \ No newline at end of file diff --git a/helloworld.js b/helloworld.js index f0ae0ca..ebc136f 100644 --- a/helloworld.js +++ b/helloworld.js @@ -1,11 +1,15 @@ 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 the actual parameter... + console.log(`Hello, ${name}`); //Idk why it prints out "Hello, $name" instead of the actual parameter... } //Tried to invoke both functions here but I get an error :( -helloWorld() -helloName("Ann") + +helloWorld(); +helloName("Ann"); + + +//Once cloned, make improvements to both the README.md and helloworld.js files. \ No newline at end of file