1 00:00:00,000 --> 00:00:09,357 [MUSIC] 2 00:00:09,357 --> 00:00:09,964 Hey there! 3 00:00:09,964 --> 00:00:13,530 Welcome to practicing arrow functions syntax in JavaScript. 4 00:00:13,530 --> 00:00:17,435 My name is Ashley and this is a follow up to the third part of the getting started 5 00:00:17,435 --> 00:00:20,757 with ES 2015 course, create functions using arrow syntax. 6 00:00:20,757 --> 00:00:23,093 To get the most out of this practice session, 7 00:00:23,093 --> 00:00:27,895 I recommend making sure you've completed that section of the course first. 8 00:00:27,895 --> 00:00:31,280 Arrow functions allows us to write shorter, more concise functions and 9 00:00:31,280 --> 00:00:34,570 can be used to solve some scope related JavaScript problems. 10 00:00:34,570 --> 00:00:35,960 For more information on this and 11 00:00:35,960 --> 00:00:39,540 the appropriate use of arrow functions, check out the teacher's notes. 12 00:00:39,540 --> 00:00:42,260 In the meantime, we'll be practicing the correct syntax for 13 00:00:42,260 --> 00:00:46,640 writing arrow functions so you're ready to incorporate them in future projects. 14 00:00:46,640 --> 00:00:50,070 To get started, check out the workspace attached to this video. 15 00:00:50,070 --> 00:00:57,370 Inside you'll find three files, convert.js, refactor.js, and debug.js. 16 00:00:57,370 --> 00:01:00,560 Each file will give you the chance to practice arrow function syntax 17 00:01:00,560 --> 00:01:02,400 in a slightly different way. 18 00:01:02,400 --> 00:01:04,100 This may seem a little daunting. 19 00:01:04,100 --> 00:01:07,190 But don't worry, we'll go through each file one at a time. 20 00:01:07,190 --> 00:01:10,120 By the time you're done with this practice session you'll be a total pro 21 00:01:10,120 --> 00:01:11,900 at writing arrow functions. 22 00:01:11,900 --> 00:01:17,320 And don't forget, to run your files you'll use node inside of the workspace console. 23 00:01:17,320 --> 00:01:19,950 We'll start with convert.js. 24 00:01:19,950 --> 00:01:21,850 Go ahead and open up this file. 25 00:01:21,850 --> 00:01:25,500 Inside, you should see three regular function declarations, 26 00:01:25,500 --> 00:01:29,640 addToTen, divideUs and printMyName. 27 00:01:29,640 --> 00:01:32,600 Your goal is to convert each of these function declarations to 28 00:01:32,600 --> 00:01:34,560 arrow function expressions. 29 00:01:34,560 --> 00:01:35,470 Give this a try and 30 00:01:35,470 --> 00:01:39,670 then head back to video two of this series to check your work and see my solution. 31 00:01:39,670 --> 00:01:40,290 Talk to you soon.