diff --git a/script.js b/script.js index 452c0ed..4c0fe33 100644 --- a/script.js +++ b/script.js @@ -1,21 +1,22 @@ -var logger = function() { - var message = 'hi'; +const logger = () => { + const message = 'hi'; console.log(message); }; -var looper = function() { - var message = 'I love JS!'; - for (var i = 0; i < 10; i++) { +const looper = () => { + const message = 'I love JS!'; + for (let i = 0; i < 10; i++) { console.log(message); } }; -var greet = function(name) { - var greeting = 'Hello ' + name + '!'; +const greet = (name)=> { + const greeting = `Hello my name is ${name}!`; + console.log(greeting); }; -var yourName = 'put your name in here'; +const yourName = 'John'; logger(); looper();