Skip to content

Challenge Learn How Script Tags And Document Ready Work

Quincy Larson edited this page Aug 20, 2016 · 1 revision

Challenge Learn how Script Tags and Document Ready Work

For some reason FCC likes to introduce jQuery before JavaScript itself.

To add JS to your HTML, you need a script tag. Your browser will run any JavaScript inside a script element, including jQuery.

Inside your script element, add this code: $(document).ready(function() { to your script. Then close it on the following line (still inside your script element) with: });

<script> $(document).ready(function(){

});</script>
Clone this wiki locally