Skip to content

Commit a24f503

Browse files
Merge pull request #425 from TomHodson91/patch-2
Added result of maths expressions
2 parents b525f36 + de8c0d6 commit a24f503

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

js/lesson2/tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,19 @@ var x = 6;
6464
var y = 3;
6565
var addition = x + y;
6666

67-
console.log('Addition: x + y = ' + addition);
67+
console.log('Addition: x + y = ' + addition); // Addition: x + y = 9
6868

6969
var subtraction = x - y;
7070

71-
console.log('Subtraction: x - y = ' + subtraction);
71+
console.log('Subtraction: x - y = ' + subtraction); // Subtraction: x - y = 3
7272

7373
var multiplication = x * y;
7474

75-
console.log('Multiplication: x * y = ' + multiplication);
75+
console.log('Multiplication: x * y = ' + multiplication); // Multiplication: x * y = 18
7676

7777
var division = x / y;
7878

79-
console.log('Division: x / y = ' + division);
79+
console.log('Division: x / y = ' + division); // Division: x / y = 2
8080
```
8181

8282
> Why not try some other maths problem using the `x` and `y` variables?

0 commit comments

Comments
 (0)