(SOLVED) - What am I missing? (syntax problem?)

@jonatandor35
I don’t know why but for me it works ?
Or am i understanding something different?

Here an working example…
https://www.media-junkie.com/counter

Edit: But you are right J.D., it works also without Async-Await (so it is not really needed at this case).

Edit-2: and this is the working code…

$w.onReady (function() {
    $w("#dataset1").onReady(() => {
 let count = $w("#dataset1").getTotalCount(); 
        console.log(count)
        $w("#counter").text = count.toString()
 
 if ($w("#counter").text === "29") { 
                $w("#text29").show();
        }
 else {
        $w("#text26").show();
        }
    })
});