Hi humans!
I'm a JavaScript newbie and new here.
I've learned so far that JavaScript can be placed anywhere between the <head></head> or <body></body> tag in an HTML document. I've been doing some exercises Alerts: I placed my JavaScript code between the head section of my page and it works fine, but when placed between the body tags; the browser seems to just ignore it. Nothing happens.

Can someone explain me why is this?