How do I print variable items when moving a range, using a javascript?

Peace be upon you and God’s mercy and blessings, How are you all, I hope you are fine, I have a simple question: How can I print variable items when moving the range?

Example of the idea I want to imitate: https://www.youtube.com/watch?v=a8AcHRYUkHE

This is my code: https://codepen.io/emozlove/pen/YbvRMd

Do you have a solution? Thank you

You can simply console log this.value

in your function.

Peace be upon you and God’s mercy and blessings, my brother, this is wonderful, now tell me how?

Peace be upon you and God’s mercy and blessings, thank God, thank God, I found the solution Finally, see my brother to the solution: https://codepen.io/emozlove/pen/YbvRMd, Thank you for help and you can close this Problem ^ _ ^