Noob Noob Question about when script are executed
Hey There,
I'm just starting JS/jQuery and i got a first question i'm not able to answer myself : is the code from a .js script executed when i call it from a HTML file ?
I thought so, but why in this example, there is nothing in the console ? (chrome dev debug)
In my Index :
<link rel="stylesheet" href="./main.js">
my js file :
$(function(){
console.log("Debug Message");
});
I can see that the main.js is correctly called in the console.
But i see no console.log in the console.
Why is that ?
Thanks a lot ! :)