diff --git a/script.js b/script.js index 452c0ed..c793183 100644 --- a/script.js +++ b/script.js @@ -1,22 +1,21 @@ -var logger = function() { - var message = 'hi'; - console.log(message); +const logger = () => { + let message = 'hi'; + console.log(message) }; -var looper = function() { - var message = 'I love JS!'; - for (var i = 0; i < 10; i++) { - console.log(message); - } +const looper = () => { + let message = 'I love JS!'; + for(let i = 0; i < 10; i++) + console.log(message) }; -var greet = function(name) { - var greeting = 'Hello ' + name + '!'; - console.log(greeting); -}; - -var yourName = 'put your name in here'; +const greet = (name) => { + let greeting = `Hello ${name}!`; + console.log(greeting); +} -logger(); -looper(); -greet(yourName); +const yourName = 'Sherial Jawed'; + + logger(); + looper(); + greet(yourName); \ No newline at end of file