how to get audio duration so far in js code example Example: js audio get duration let x = document.getElementById("myAudio").duration;