Skip to content

Commit

Permalink
Issue HowProgrammingWorks#2: Task two.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Porokhnya committed Sep 14, 2019
1 parent ce4eb73 commit 48f48c7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Exercises/2-by-value.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
'use strict';

const inc = null;
const inc = num => ++num;

const a = 5;
const b = inc(a);
console.dir({ a, b });

module.exports = { inc };

0 comments on commit 48f48c7

Please sign in to comment.