Image filter response https://codepen.io/ahmed-besher/pen/MWQNZoY

hello all , the image in html trying to manipulate (filter grayscale,blur,…etc) using input range then by javascript
var gray =document.getElementById(“input”).value;
document.getElementById(“myimg”).style.filter=“grayscale(gray%)”;
it doesnot correspond to change in the input while the changed is logged on console normally tried to use ${} but the same any suggestions or different approach to solve it

I think you should put your code in codepen so it’s easy for us to fork that project and debug.

i am a new user
how to put my code in code pen and share it here ?

Also, the HTML boilerplate is already provided for you. You can start pasting the body only

i wrote all relevant information in my post do u have an idea about this problem ?

https://codepen.io/ahmed-besher/pen/MWQNZoY here is the code