fix: using constant instead of magic value

This commit was merged in pull request #1.
This commit is contained in:
2025-10-12 20:17:12 +01:00
parent a96705ea0e
commit c50390db00

View File

@@ -1,3 +1,5 @@
const PERSON = "youtube";
function anotherGreeting() { function anotherGreeting() {
console.log("another greeting!"); console.log("another greeting!");
console.log("yet another greeting!"); console.log("yet another greeting!");
@@ -5,7 +7,7 @@ function anotherGreeting() {
} }
function init() { function init() {
console.log("hello youtube!"); console.log(`hello ${PERSON}!`);
console.log("another log!"); console.log("another log!");