mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
8 lines
160 B
JavaScript
8 lines
160 B
JavaScript
let i = 0;
|
|
let sum = 0;
|
|
while (_ref = i, (i = 2 * _ref - _ref + 1) <= 10) {
|
|
var _ref;
|
|
sum += i;
|
|
}
|
|
expect(sum).toBe(10 + 9 + 8 + 7 + 6 + 5 + 4 + 3 + 2 + 1);
|