From 1ae91e02402ad8fd676a23463f12cb18cca11cc5 Mon Sep 17 00:00:00 2001 From: KeyontaeR8 Date: Thu, 4 Sep 2025 03:56:44 -0600 Subject: [PATCH] revamped the code with more descrptive variable names --- ...-to-bottom-code-evaluation.js => variableNaming.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) rename variables-naming-conventions-and-top-to-bottom-code-evaluation.js => variableNaming.js (78%) diff --git a/variables-naming-conventions-and-top-to-bottom-code-evaluation.js b/variableNaming.js similarity index 78% rename from variables-naming-conventions-and-top-to-bottom-code-evaluation.js rename to variableNaming.js index c9d1be4..effb5b2 100644 --- a/variables-naming-conventions-and-top-to-bottom-code-evaluation.js +++ b/variableNaming.js @@ -24,9 +24,14 @@ Things to reflect on: */ -let a = "Alice"; -let b = 5; -let c = 20; +let a = "Alice"; // The variable are vauge and not well defined +let b = 5; // This could use better naming all together +let c = 20; // This one could have started with $ to give context let d = a + " bought " + b + " items for $" + c + "."; console.log(d); + +let name = "Alice"; +let _numberofItems = 5; +let $amount = 20; +let purchase = name + "bought" + 'items for $' + $amount + '.'; \ No newline at end of file