Skip to content

Commit de8c0d6

Browse files
authored
Added result of maths expressions
Added comments to show result of console log of the maths expressions, consistent with the comment showing the result of the console log of the strings values.
1 parent b525f36 commit de8c0d6

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)