1 00:00:00,270 --> 00:00:04,280 The error functions we've written so far, have had no arguments. 2 00:00:04,280 --> 00:00:07,120 What do they look like if there are arguments? 3 00:00:07,120 --> 00:00:08,030 Let me show you. 4 00:00:08,030 --> 00:00:11,520 First, let's create error functions that take a single argument. 5 00:00:12,730 --> 00:00:18,540 Open up the second JavaScript file, and we're going to modify the function square, 6 00:00:18,540 --> 00:00:23,346 and cube for each function let set up variables with appropriate names. 7 00:00:23,346 --> 00:00:31,300 Square, And cube. 8 00:00:31,300 --> 00:00:38,283 Next, remove the function keyword and each of the functions names. 9 00:00:41,423 --> 00:00:44,283 Finally, add arrows to each of the functions. 10 00:00:47,901 --> 00:00:48,853 As you can see, 11 00:00:48,853 --> 00:00:53,481 the syntax is exactly the same with a single argument as with no arguments. 12 00:00:56,941 --> 00:01:02,210 Let's see what's an arrow function looks like with multiple arguments. 13 00:01:02,210 --> 00:01:07,300 Open up the third file and let's convert multiply into an error function. 14 00:01:08,360 --> 00:01:13,535 Start by assigning the function to a multiply constant variable. 15 00:01:16,417 --> 00:01:19,980 Then, remove the function keyword and the function name. 16 00:01:22,600 --> 00:01:23,800 Finally, at the arrow. 17 00:01:25,460 --> 00:01:29,370 There's also add and subtract here. 18 00:01:29,370 --> 00:01:31,888 These need to be converted to our syntax, too. 19 00:01:31,888 --> 00:01:34,420 Why don't you convert these for practice? 20 00:01:34,420 --> 00:01:35,350 In the next video, 21 00:01:35,350 --> 00:01:39,860 we'll take a look at an even more concise way to write our functions.