From d014887cc723006125e819462ce2d994cf892e65 Mon Sep 17 00:00:00 2001 From: MarkEEaton Date: Fri, 3 Mar 2023 14:09:32 -0500 Subject: [PATCH] test for ternary operator and nullish coalescing --- groups/home/Vue3-v.1-css.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/groups/home/Vue3-v.1-css.html b/groups/home/Vue3-v.1-css.html index b956db9..7d0ec52 100644 --- a/groups/home/Vue3-v.1-css.html +++ b/groups/home/Vue3-v.1-css.html @@ -435,6 +435,12 @@ function addPrimoQuery(e) { // Spread operator let es6e = [...es6d, 4]; + // ternary operator + let es6f = es6a ? "ternary" : "no ternary"; + + // nullish coalescing + es6a ??= 10; + window.isES6 = true;