Book Image

JavaScript Projects for Kids

By : Syed Omar Faruk Towaha
Book Image

JavaScript Projects for Kids

By: Syed Omar Faruk Towaha

Overview of this book

JavaScript is the most widely-used programming language for web development and that's not all! It has evolved over the years and is now being implemented in an array of environments from websites to robotics. Learning JavaScript will help you see the broader picture of web development. This book will take your imagination to new heights by teaching you how to work with JavaScript from scratch. It will introduce you to HTML and CSS to enhance the appearance of your applications. You’ll then use your skills to build on a cool Battleship game! From there, the book will introduce you to jQuery and show you how you can manipulate the DOM. You’ll get to play with some cool stuff using Canvas and will learn how to make use of Canvas to build a game on the lines of Pacman, only a whole lot cooler! Finally, it will show you a few tricks with OOP to make your code clean and will end with a few road maps on areas you can explore further.
Table of Contents (17 chapters)
JavaScript Projects for Kids
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Chapter 6. Exploring the Benefits of jQuery

If you have gone through the previous chapter, you probably have implemented jQuery in your Battleship game. In this chapter, we will discuss about jQuery in detail.

The jQuery library is a JavaScript framework. It was released in 2006. People used to call it jSelect. We use jQuery in our websites so that we can work with JavaScript easily and add effects to our web pages. You may think jQuery is different from JavaScript. No! jQuery is just another JavaScript file. It is a very lightweight library that helps you to decorate your web pages more easily with less coding.

We use jQuery due to the following advantages:

  • It is open source; you can edit or modify its code if required

  • It is a small library (about 150 KB file)

  • The community support for jQuery is very strong; you can get help from the users easily

  • It is user-friendly and popular

  • It supports cross-browsers

  • It is openly developed; you can fix any bug or add features to it by editing the codes

  • It helps...