Abstract
Having data is no use if you can’t do anything with it, so step forward operators. Operators do just what their name suggests; they operate on things. In the case of JavaScript, those things are the values stored in variables and any other value used in your script. For example, we’d use a division operator to divide one value by another value to return a result. There are some very straightforward operators in JavaScript and some not-so-straightforward ones; we’ll cover all the useful ones and mention the others in passing, even though you will never use them.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2010 Terry McNavage
About this chapter
Cite this chapter
McNavage, T. (2010). Operators. In: JavaScript for Absolute Beginners. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-7218-2_3
Download citation
DOI: https://doi.org/10.1007/978-1-4302-7218-2_3
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-7219-9
Online ISBN: 978-1-4302-7218-2
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books