Skip to content

Commit

Permalink
Update example.js
Browse files Browse the repository at this point in the history
update to newer syntax
  • Loading branch information
oygen87 committed Jul 28, 2018
1 parent 482ff20 commit 614f2ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/commonjs/example.js
@@ -1,3 +1,3 @@
var inc = require('./increment').increment;
var a = 1;
inc(a); // 2
const inc = require('./increment').increment;
const a = 1;
inc(a); // 2

0 comments on commit 614f2ad

Please sign in to comment.