Skip to content

Commit eabfd71

Browse files
author
Dronca Raul
committed
Math Operators
1 parent c683dd7 commit eabfd71

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

JavaScript/12_MathOperators.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
3+
+ Addition
4+
- Subtraction
5+
* Multiplication
6+
/ Division
7+
% Modulus
8+
++ Increment
9+
-- Decrement
10+
11+
*/
12+
13+
var apples = 4 * 4;
14+
document.write(apples);
15+
16+
// Methods to increment
17+
// First Example
18+
var chop = 7;
19+
chop = chop + 1;
20+
document.write(chop);
21+
22+
// Second Example
23+
chop++;
24+
25+
// Decrement
26+
chop--;

0 commit comments

Comments
 (0)