test for ternary operator and nullish coalescing

This commit is contained in:
MarkEEaton
2023-03-03 14:09:32 -05:00
committed by GitHub
parent d42dbe09d8
commit d014887cc7
+6
View File
@@ -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>