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

Bitwise Operators

Computers actually deal with data in terms of bits, that is, in terms of binary values, 0 and 1. For example, the number 9 is really stored in binary as 1001. JavaScript gives you access to the actual binary bits of the data it’s working on with its bitwise operators. This probably won’t concern you very much, and if not, feel free to skip on. For the sake of completeness, however, I’ll include these details here.

You can see the JavaScript bitwise operators and what they do in Table 2.8.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint