UNPKG
node-es5
Version:
latest (1.0.0)
1.0.0
A shim to always run node in es5 proper "strict mode"
coolaj86/node-es5
node-es5
/
test.js
12 lines
(9 loc)
•
194 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
// This IIFE is redundant when run with node --use_strict
(function () { "
use
strict"; function
speak
() { console
.log
('Hello World!'); }
setInterval
(speak,
1000
);
speak
(); }());