how to show the audio total duration using javascript code example Example: js audio get duration let x = document.getElementById("myAudio").duration;