From 21091166af4557c0f498d7b2ab5acdc9ce5008c4 Mon Sep 17 00:00:00 2001 From: Hu Guo <86079744+HuGuo-UNC-Chapel-Hill@users.noreply.github.com> Date: Thu, 6 Oct 2022 08:21:11 -0400 Subject: [PATCH 1/5] Create random_number.js --- lib/random_number.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 lib/random_number.js diff --git a/lib/random_number.js b/lib/random_number.js new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/lib/random_number.js @@ -0,0 +1 @@ + From 7f7ed0b0b3d58238e06a6086d068c794ba6a9dcc Mon Sep 17 00:00:00 2001 From: Hu Guo <86079744+HuGuo-UNC-Chapel-Hill@users.noreply.github.com> Date: Thu, 6 Oct 2022 08:28:36 -0400 Subject: [PATCH 2/5] Update random_number.js --- lib/random_number.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/random_number.js b/lib/random_number.js index 8b13789..f07646d 100644 --- a/lib/random_number.js +++ b/lib/random_number.js @@ -1 +1,3 @@ - +const message = () => { + console.log("Hello World"); +} From 7c23f4d9e5e7b2ca6ef32c222dd9e4aff0076571 Mon Sep 17 00:00:00 2001 From: Hu Guo <86079744+HuGuo-UNC-Chapel-Hill@users.noreply.github.com> Date: Thu, 6 Oct 2022 08:32:53 -0400 Subject: [PATCH 3/5] Update random_number.js --- lib/random_number.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/random_number.js b/lib/random_number.js index f07646d..60e231c 100644 --- a/lib/random_number.js +++ b/lib/random_number.js @@ -1,3 +1,5 @@ -const message = () => { - console.log("Hello World"); +function hello(message) { + console.log(hello(message)); } + +console.log(hello(message)); From c90940c751b19c67a3432339012a74b2e8a52cc5 Mon Sep 17 00:00:00 2001 From: Hu Guo <86079744+HuGuo-UNC-Chapel-Hill@users.noreply.github.com> Date: Thu, 6 Oct 2022 08:33:31 -0400 Subject: [PATCH 4/5] Update random_number.js --- lib/random_number.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/random_number.js b/lib/random_number.js index 60e231c..a00ccd0 100644 --- a/lib/random_number.js +++ b/lib/random_number.js @@ -1,5 +1,6 @@ function hello(message) { - console.log(hello(message)); + let message = "hello world"; + return message; } console.log(hello(message)); From ac6a480a9ec01678a4f9ebfd7231d33b6cacf8f4 Mon Sep 17 00:00:00 2001 From: Hu Guo <86079744+HuGuo-UNC-Chapel-Hill@users.noreply.github.com> Date: Thu, 6 Oct 2022 08:36:55 -0400 Subject: [PATCH 5/5] Update and rename random_number.js to hello.js --- lib/hello.js | 6 ++++++ lib/random_number.js | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 lib/hello.js delete mode 100644 lib/random_number.js diff --git a/lib/hello.js b/lib/hello.js new file mode 100644 index 0000000..73b9096 --- /dev/null +++ b/lib/hello.js @@ -0,0 +1,6 @@ +function hello() { + let m = "hello world"; + return m; +} + +console.log(hello()); diff --git a/lib/random_number.js b/lib/random_number.js deleted file mode 100644 index a00ccd0..0000000 --- a/lib/random_number.js +++ /dev/null @@ -1,6 +0,0 @@ -function hello(message) { - let message = "hello world"; - return message; -} - -console.log(hello(message));