output the last value of the function – Javascript
I have a written slider function that, when clicked, displays all values in the console function outputUpdate(vol) { let output = document.querySelector('#volume'); output.value = vol; output.style.left = vol - 20 + 'px'; if (output.value > 9) { output.style.left = vol…