CHAPTER 1

image

JavaScript You Need to Know

jQuery is a framework that’s built on top of JavaScript, not a language in its own right. It is possible to write jQuery with barely any knowledge of JavaScript, but it’s not something I would recommend. If you want to be able to confidently write jQuery plug-ins for your site, or alter plug-ins others have written, you need to be familiar with basic JavaScript. This is why I’m starting with JavaScript that you need to know. This chapter will cover:

  • JavaScript scripts on a web page
  • Variables and objects in JavaScript
  • JavaScript functions
  • Conditionals
  • Looping over arrays and objects
  • Debugging JavaScript

Get Beginning jQuery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.