1 00:00:00,240 --> 00:00:04,220 The arrow functions we've written so far have had no arguments. 2 00:00:04,220 --> 00:00:07,060 What do they look like if there are arguments? 3 00:00:07,060 --> 00:00:07,980 Let me show you. 4 00:00:07,980 --> 00:00:11,530 First, let's create arrow functions that take a single argument. 5 00:00:12,700 --> 00:00:15,317 Open up the second JavaScript file and 6 00:00:15,317 --> 00:00:19,470 we're going to modify the functions square and cube. 7 00:00:19,470 --> 00:00:24,429 For each function, let's set up variables 8 00:00:24,429 --> 00:00:29,074 with appropriate names, square, And cube. 9 00:00:32,756 --> 00:00:38,450 Next, remove the function keyword and each of the function's names. 10 00:00:41,435 --> 00:00:44,440 Finally, add arrows to each of the functions. 11 00:00:47,875 --> 00:00:48,868 As you can see, 12 00:00:48,868 --> 00:00:53,700 the syntax is exactly the same with a single argument as with no arguments. 13 00:00:56,903 --> 00:01:02,190 Let's see what an arrow function looks like with multiple arguments. 14 00:01:02,190 --> 00:01:08,260 Open up the third file and let's convert multiply into an arrow function. 15 00:01:08,260 --> 00:01:12,740 Start by assigning the function to a multiply constant variable. 16 00:01:16,327 --> 00:01:19,960 Then, remove the function keyword and the function name. 17 00:01:22,292 --> 00:01:23,780 Finally, add the arrow. 18 00:01:25,430 --> 00:01:31,888 There's also add and subtract here, these need to be converted to arrow syntax too. 19 00:01:31,888 --> 00:01:34,390 Why don't you convert these for practice? 20 00:01:34,390 --> 00:01:35,330 In the next video, 21 00:01:35,330 --> 00:01:39,830 we'll take a look at an even more concise way to write arrow functions.