From 6dfef8492dae87b277ac5831f00ed20c1c644dd8 Mon Sep 17 00:00:00 2001 From: Rohit Paul <113459757+RohitPaul0007@users.noreply.github.com> Date: Fri, 25 Aug 2023 10:12:03 +0530 Subject: [PATCH] Update practice.js --- practice.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/practice.js b/practice.js index 839f4b2e..806e16d6 100644 --- a/practice.js +++ b/practice.js @@ -30,7 +30,7 @@ // Code Here // Do not edit the code below. -var names = ['Tyler', 'Cahlan', 'Ryan', 'Colt', 'Tyler', 'Blaine', 'Cahlan']; +let names = ['Tyler', 'Cahlan', 'Ryan', 'Colt', 'Tyler', 'Blaine', 'Cahlan']; first(names, function(firstName){ console.log('The first name in names is ' + firstName); @@ -142,7 +142,7 @@ each(names, function(item, indice){ // Code here // Do not edit the code below. -var users = [ +let users = [ { id: '12d', email: 'tyler@gmail.com', @@ -166,4 +166,4 @@ var users = [ getUserById(users, '16t', function(user){ console.log('The user with the id 16t has the email of ' + user.email + ' the name of ' + user.name + ' and the address of ' + user.address); }); -// Do not edit the code above. \ No newline at end of file +// Do not edit the code above.