© Rehan Zaidi 2017

Rehan Zaidi, JavaScript Essentials for SAP ABAP Developers, 10.1007/978-1-4842-2220-1_3

3. Operators in JavaScript

Rehan Zaidi

(1)Karachi, Pakistan

This chapter explains JavaScript operators in detail. It starts with the arithmetic operators and then looks at the comparison operators and logical operators that are used for formulating conditional checks in JS programs. The final section of the chapter covers the assignment and bitwise operators.

Arithmetic Operators

Arithmetic operators take values in the form of literals or variables as operands and return a single value. The standard arithmetic operators supported in JavaScript are listed in Table 3-1. Each is described in turn in the subsections that follow.

Table 3-1. Arithmetic ...

Get JavaScript Essentials for SAP ABAP Developers: A Guide to Mobile and Desktop Application Development 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.