Hello, in this video, I'm going to show you arrow functions, it's essentially a way of minimizing the code that you would have with an anonymous function like this anonymous functions or more EFI and arrow function, the more he is six. So instead of assigning to a variable like so, what you can do is actually get rid of the function keyword, and I think they know that it's a function, you still need the you know, the brackets here. And if you want parameters, you will say do X and Y so into parameter, but here, you put equals, and then greater than or the city said change back before save it and run it. It still runs the same way. You might a lot of the time. See it's shorthand like this and you'll usually be on on one line, something along the lines.
I prefer it prefer to separate it. So it looks more like a general regular function. But this is, you know, just a normal function as anything else. Also, as with a normal function and arrow functions, I recommend you then the const keyword, simply because this one showed that this can't be overridden. But if you want that functionality of being able to override this you know variable to have a function, you know, assigned to it, you can do so that's totally up to you, it's, you know, it's flexible. So you can choose what you want to do.
You have to bear in mind, arrow functions, you know, are not hoisted, so they must be defined before the use. And apart from that, that's all in our function is as an extra task, I want you to create an arrow function that you pass in two numbers, so two variables, two parameters, and you multiply them together and actually return that value and assign them a lead here to a variable, then print that out. So feel free to take Go take a look over the video again, if there's anything that you confused about, if you're still not sure, feel free to pop me a message and I look forward to seeing you in the next JavaScript video.