Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

Operators

Now that we have covered some of the types of data JavaScript has available, and how you can store that information, we need to go over how to dosomething with these data. There are several categories of operations you can perform in the JavaScript language. You can assign and compare data, perform calculations with data, evaluate logic, and manipulate string data. JavaScript also has a set of special operators that amount to programming shortcuts for making some common programming structures with fewer keystrokes.

Assignment

This set of operators allows you to assign variables to data. There are some shorthand ways whereby JavaScript allows you to interact with data assignment to save some of the repetitiveness of programming.

Image

Comparison


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial