File: main.js

package info (click to toggle)
node-rollup 3.29.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 53,520 kB
  • sloc: javascript: 115,081; sh: 26; makefile: 18
file content (19 lines) | stat: -rw-r--r-- 468 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const a = [false, , true];
const b = [false, , true, ...a, false, , true, ...a];

let count = 0;

b[0] ? count+= 10: count++;
b[1] ? count+= 10: count++;
b[2] ? count+= 10: count++;
b[3] ? count+= 10: count++;
b[4] ? count+= 10: count++;
b[5] ? count+= 10: count++;
b[6] ? count+= 10: count++;
b[7] ? count+= 10: count++;
b[8] ? count+= 10: count++;
b[9] ? count+= 10: count++;
b[10] ? count+= 10: count++;
b[11] ? count+= 10: count++;

assert.strictEqual(count, 48);