1 00:00:00,410 --> 00:00:01,450 Hi again. 2 00:00:01,450 --> 00:00:06,010 Hope you're still having fun practicing arrow functions syntax in JavaScript. 3 00:00:06,010 --> 00:00:09,440 Let's jump right in to the solution for the refactor.js style. 4 00:00:10,640 --> 00:00:14,020 Our first function in this file, multiplied by 10, 5 00:00:14,020 --> 00:00:17,810 will run just fine, but could be written more concisely. 6 00:00:17,810 --> 00:00:19,200 Any ideas? 7 00:00:19,200 --> 00:00:23,480 One thing we could do, is remove the parentheses around the num parameter. 8 00:00:23,480 --> 00:00:28,441 Because we're only passing in one parameter, we don't need them, what else? 9 00:00:28,441 --> 00:00:32,090 Well, because our function only has one line of code, 10 00:00:32,090 --> 00:00:36,110 we don't actually need our curly braces or the return key word. 11 00:00:36,110 --> 00:00:38,240 Our entire function can go on one line. 12 00:00:39,310 --> 00:00:41,940 And what about our second function, printToTen? 13 00:00:41,940 --> 00:00:44,300 Did you struggle with this one at all? 14 00:00:44,300 --> 00:00:47,390 Don't worry if you weren't able to refactor this function to make it 15 00:00:47,390 --> 00:00:48,370 more succinct. 16 00:00:48,370 --> 00:00:50,030 You didn't miss anything. 17 00:00:50,030 --> 00:00:52,530 This function is already as short as it can be. 18 00:00:53,790 --> 00:00:57,490 For our final function, addUs, we can shorten this one a bit more by ditching 19 00:00:57,490 --> 00:01:00,760 our curly braces and putting our entire function on one line. 20 00:01:02,060 --> 00:01:04,260 Awesome job refactoring these functions. 21 00:01:04,260 --> 00:01:06,960 You should be feeling really great about your work here. 22 00:01:06,960 --> 00:01:11,160 If you have any questions about what we've done so far in this practice session, 23 00:01:11,160 --> 00:01:15,380 I definitely encourage you to connect with other students in the TreeHouse community. 24 00:01:15,380 --> 00:01:18,360 You'd be surprised how many other students may have the exact same 25 00:01:18,360 --> 00:01:19,140 questions that you do. 26 00:01:20,560 --> 00:01:25,440 Okay, let's move on now to our last file, debug.js. 27 00:01:25,440 --> 00:01:30,090 This file contains three arrow functions that all have some syntax errors. 28 00:01:30,090 --> 00:01:33,165 Your goal is to debug these functions and correct them, so 29 00:01:33,165 --> 00:01:35,740 that they're using the correct syntax. 30 00:01:35,740 --> 00:01:38,220 You'll know you've got it right when your code runs without error. 31 00:01:39,280 --> 00:01:40,992 Go ahead and give this a try. When you're done, 32 00:01:40,992 --> 00:01:46,200 head back to the fourth and final video in this series to see the solution. 33 00:01:46,200 --> 00:01:46,700 Good luck.