Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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."
12 changes: 8 additions & 4 deletions helloworld.js
Original file line number Diff line number Diff line change
@@ -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.