From 76bd8e374b59a26363b93dbf041fbf72de871de4 Mon Sep 17 00:00:00 2001 From: Ryan Hamblin Date: Tue, 5 Sep 2017 14:23:03 -0600 Subject: [PATCH 1/2] fixed typo on readme and first problem solved! --- README.md | 3 ++- script.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 33eec55..b6cebbb 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,10 @@ Topics: ## Project Description ### Initialize Project -* Change the JavaScript in the script file to use the new ES6 syntax. +* Change the JavaScript in the script.js file to use the new ES6 syntax. * Change the functions to be arrow functions. * Change the variables to `const` and `let`. +* Change any strings you may encounter to use 'template literals'. ### Steps for submitting a pull request * Change your current working directory to your project: `cd /path/to/project`, diff --git a/script.js b/script.js index 452c0ed..66196f2 100644 --- a/script.js +++ b/script.js @@ -1,5 +1,5 @@ -var logger = function() { - var message = 'hi'; +const logger = () => { + const message = 'hi'; console.log(message); }; From 6bbfa5b1f0d4cad3a14f5b1627afab2717e32d9c Mon Sep 17 00:00:00 2001 From: Ryan Hamblin Date: Tue, 5 Sep 2017 14:26:04 -0600 Subject: [PATCH 2/2] just finsihed by the skin of my teeth --- script.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/script.js b/script.js index 66196f2..e283cb9 100644 --- a/script.js +++ b/script.js @@ -3,19 +3,19 @@ const logger = () => { 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 (screenLeft i = 0; i < 10; i++) { console.log(message); } }; -var greet = function(name) { - var greeting = 'Hello ' + name + '!'; +const greet = (name) => { + const greeting = `Hello ${name}`; console.log(greeting); }; -var yourName = 'put your name in here'; +const yourName = 'put your name in here'; logger(); looper();