I'm new to coding and I started with javascript. It's been a smooth journey for me but I have a question, why does I see people call function before define it first?
Example:
doSomething();
function doSomething(){
console.log("Hello World");
}
Not like this?
function doSomething(){
console.log("Hello World");
}
doSomething();
Thank you.