Files
codeql/javascript/ql/test/library-tests/Constants/tst.js
2018-08-02 17:53:23 +01:00

51 lines
284 B
JavaScript

"a";
"b" + "c";
"d" + "e" + "f";
`g` + `h`;
1;
false;
true;
-1;
!0;
null;
undefined;
function f(){};
({});
/x/;
f();
!`${"x"}`;
!!0;
!!``;
void 0;
void f();
NaN;
Infinity;
1 + 2 + 3;
(1);
f, 1;
1, f;
1? 2: 3;
f? 2: 3;
1? f: 3;
1? 2: f;
x = 1;
x.p = 1;
x += 1;
x += x;