There are 7 operations can be done in Arithmetic Operators. These are
1 . Addition ( + ) :- This operation gives you the Added value. See the below example.
var a = 5 ;
var b = 3 ;
var c = a + b ;
document.write(b);
OUTPUT :- 8
2 . Subtraction ( – ) :- This Operation gives you the Subtracted value. See the Below example.
var a = 9 ;
var b = 6 ;
var c = a – b ;
document.write(b);
OUTPUT :- 3
3 . Multiplication ( * ) :- This operation gives you the Multiplied value. See the below example.
var a = 7 ;
var b = 5 ;
var c = a * b ;
document.write(b);
OUTPUT :- 35
4 . Division ( / ) :- This operation gives you the Divided / Quotient value. See the below example.
var a = 55 ;
var b = 5 ;
var c = a / b ;
document.write(b);
OUTPUT :- 11
5 . Modulus Operator ( % ) :- This operation gives you the Remainder value. See the below example.
var a = 25 ;
var b = 6 ;
var c = a / b ;
document.write(b);
OUTPUT :- 1
6 . Increment ( ++ ) :- This operation gives you the 1 incremented value. See the below example.
var a = 25 ;
a++;
document.write(a);
OUTPUT :- 26
7 . Decrement ( – – ) :- This operation gives you the 1 Decremented value. See the below example.
var a = 12 ;
a–;
document.write(a);
OUTPUT :- 11
Video Reference
- What is On-Page Optimization and Off-page Optimization - March 14, 2024
- [SOLVED] Flutter : PlatformException(sign_in_failed, com.google.android.gms.common.api.ApiException: 10: , null, null) - December 7, 2021
- [Solved] Flutter : Error: The getter ‘subhead’ isn’t defined for the class ‘TextTheme’ from package:flutter/src/material/text_theme.dart’ – searchable_dropdown - December 6, 2021