From c50390db004ef15b62ea53f489126455214a0b51 Mon Sep 17 00:00:00 2001 From: John Costa Date: Sun, 12 Oct 2025 20:17:12 +0100 Subject: [PATCH] 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!");