how can i call the js value into css when logging the current duration of the song for the progress bar
im trying to make a music player in that music player
audio.onloadedmetadata = function(){
let audioposition = audio.currentTime;
console.log(audioposition)}
,1000);
here it logs the current position of the audio
then
function Duration(src){
var audio = new Audio();
audio.src = "./audio/2.mp3";
var due;
return getVal(audio);
}
logs the total duration of the audio now i want to make a progress bar how can i do that how can i call these value to the bar to create one