Hello, in this video, we are going to take a look at default arguments. So we have this function that just squares a number takes a number. And it could be a hard coded number like that could be a variable that's passing by value doesn't really matter. And he gets it multiplies it by 12, which is squaring it, and it prints it out. So as you can see, for 10, we get 100 if we want it, so if the user doesn't pass in a value, it will have a value by default, then we can just do equals, let's say nine, for example. And as you can see, this doesn't change.
That's because we pass in a value, we don't pass in a value and we run it we get 81 because if no value is passed in for this particular variable, then it will just get the default value, which happens to be nice. That's a great way To have a fallback in, in case you can call a method with some default value, but obviously, that's the only you will the coder. Maybe that default value, you know, might change at a later date, but essentially allows you to create a function that doesn't crash. if let's say a developer calls it without passing in a value, or that value has been passed in is from the user itself, and they say you do default argument values. If you have any questions, feel free to pop me a message. And as usual, I look forward to seeing you in the next video.