From 35e30aee7d8849a40acac2a2a711b5d777212d14 Mon Sep 17 00:00:00 2001 From: John Costa Date: Sun, 12 Oct 2025 20:02:28 +0100 Subject: [PATCH 1/3] chore: reorganizing initialization and exclamation --- index.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/index.ts b/index.ts index 4890139..c60ac07 100644 --- a/index.ts +++ b/index.ts @@ -1,5 +1,9 @@ -console.log("hello youtube!"); +function init() { + console.log("hello youtube!"); -console.log("another log"); + console.log("another log!"); -console.log("yet another log"); + console.log("yet another log!"); +} + +init(); -- 2.47.2 From a96705ea0e12b505e1e8493dc6ca31e503989819 Mon Sep 17 00:00:00 2001 From: John Costa Date: Sun, 12 Oct 2025 20:18:38 +0100 Subject: [PATCH 2/3] feat: adding another user greeting --- index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.ts b/index.ts index c60ac07..7cbd4e9 100644 --- a/index.ts +++ b/index.ts @@ -1,3 +1,9 @@ +function anotherGreeting() { + console.log("another greeting!"); + console.log("yet another greeting!"); + console.log("yet yet another greeting!"); +} + function init() { console.log("hello youtube!"); @@ -7,3 +13,4 @@ function init() { } init(); +anotherGreeting(); -- 2.47.2 From c50390db004ef15b62ea53f489126455214a0b51 Mon Sep 17 00:00:00 2001 From: John Costa Date: Sun, 12 Oct 2025 20:17:12 +0100 Subject: [PATCH 3/3] fix: using constant instead of magic value --- index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 7cbd4e9..797825d 100644 --- a/index.ts +++ b/index.ts @@ -1,3 +1,5 @@ +const PERSON = "youtube"; + function anotherGreeting() { console.log("another greeting!"); console.log("yet another greeting!"); @@ -5,7 +7,7 @@ function anotherGreeting() { } function init() { - console.log("hello youtube!"); + console.log(`hello ${PERSON}!`); console.log("another log!"); -- 2.47.2