WordPress comes with a lot of built in Javscript libraries, frameworks, plugins..etc that you can use in your themes with a single line of code. You will find a list of scripts bundled with WordPress here. I will show you how to add “Jquery” and “Prototype” to your themes.
Jquery
Simply add the script below above your wp_head(); in your header.php.
<?php wp_enqueue_script("jquery"); ?>Prototype
Add the code below above your wp_head(); in your header.php.
<?php wp_enqueue_script("prototype"); ?>That’s it.