Hello, in this JavaScript video I am going to show you function. hoisting function hoisting allows you to call a function before we even know in a linear, you know, context implemented in your code, but still use this functionality. But first of all, let me show you a simple function. And we call it epic funk. And you could have provided variable inside of your parameters. It works with any type of function, console dot log, just keep it simple.
Hello, we'll run the function for epic. I run it like so get hello world. But watch what happens if I were to grab this query here. Even though this is called before Declaration on it still works fine. It works great. Even though we call a function in our code first, before the function is even written, the code still works.
This is because of how context execution works in JavaScript. hoisting works in a while with other data types, which is variable as well. I've got a video covering that. So feel free to check that out. And that function hoisting any questions, feel free to call me message and I look forward to seeing you in the next video.