fix: using constant instead of magic value
This commit is contained in:
4
index.ts
4
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!");
|
||||
|
||||
|
Reference in New Issue
Block a user