I recently started learning JavaScript and I’ve been a frequent user of jsfiddle since then. Although it’s pretty simple, I still have one problem understanding its events. ex: no wrap (head), onDomReady

What are these events for and what are the differences between them? Can someone please do a decent explanation?
Thank you very much and happy new year!
This dropdown specifies where jsFiddle should put your Javascript code in the generated HTML.
The first two options put it in a raw
<script>block in the<head>or<body>.The last two options put it in a Javascript event handler.
You can see how this works by viewing the source of the generated page.
(or without jQuery)