Skip to content

Commit 48f48c7

Browse files
author
Dmitry Porokhnya
committed
Issue HowProgrammingWorks#2: Task two.
1 parent ce4eb73 commit 48f48c7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Exercises/2-by-value.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
'use strict';
22

3-
const inc = null;
3+
const inc = num => ++num;
4+
5+
const a = 5;
6+
const b = inc(a);
7+
console.dir({ a, b });
48

59
module.exports = { inc };

0 commit comments

Comments
 (0)