function updateRate() 
{
    var rateval = document.getElementById("rate").value;
    document.getElementById("rate_val").innerText=rateval+'%';
}
// Function that reads the value of the range slider and displays it the <span>adjacent to the slider
Function that reads the value of the range slider and displays it the adjacent to the slider
Function that reads the value of the range slider and displays it the adjacent to the slider
function updateRate() 
{
    var rateval = document.getElementById("rate").value;
    document.getElementById("rate_val").innerText=rateval+'%';
}
function updateRate ( ) { var rateval = document . getElementById ( "rate" ) . value ; document . getElementById ( "rate_val" ) . innerText = rateval + '%' ; }
Function that reads the value of the range slider and displays it the <span>adjacent to the slider
Function that reads the value of the range slider and displays it the <span > adjacent to the slider