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?

@emoz41 If you are not familiar with how to use console.log, check out this documentation.

You can also check out the following Free Code Camp’s challenge:

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/debugging/use-the-javascript-console-to-check-the-value-of-a-variable

1 Like

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 ^ _ ^