Help with a Volume Slider to control Audio Volume

I’m trying to make a simple volume controller with a slider and thought this would work but it doesn’t! Can anyone help me understand this and show me what I’m doing wrong. Thanks

$w . onReady ( function () {
$w ( “#slider1” ). onChange ( ( event ) => {
let newValue = event . target . value ; // “new value”
$w ( “#audioPlayer1” ). volume = newValue ;
});

This CODE here is OK and everything works like a charm! ( TESTED )

$w.onReady(function(){
    $w("#slider1").onChange( (event) => {
        let newValue = event.target.value; // "new value"
        $w("#audioPlayer1").volume = newValue;
    });
});

https://www.media-junkie.com/blank-6 (Link will loose its functionality in few days!)

Thanks Ninja I see it was the });}); double I missed.

:wink: