test for ternary operator and nullish coalescing
This commit is contained in:
@@ -435,6 +435,12 @@ function addPrimoQuery(e) {
|
|||||||
// Spread operator
|
// Spread operator
|
||||||
let es6e = [...es6d, 4];
|
let es6e = [...es6d, 4];
|
||||||
|
|
||||||
|
// ternary operator
|
||||||
|
let es6f = es6a ? "ternary" : "no ternary";
|
||||||
|
|
||||||
|
// nullish coalescing
|
||||||
|
es6a ??= 10;
|
||||||
|
|
||||||
window.isES6 = true;
|
window.isES6 = true;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user