Can someone help me answer this code request please?
Write a 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;
}
Link this function with an "onchange" event on the range input.
Change the slider, and test if the display in the span is being updated dynamically.
Get the reference to the element named 'result'
When "Compute Interest" is clicked, set its inner html property to the below text.
If you deposit 100, at an interest rate of 3.5%. You will receive an amount of 175000, in the year 2025