It shows random numbers and “Target: {target} Guess: {guess}”
Why doesn’t show - Target: 1
Guess: 1
That is if the numbers come the same.
Your help is appreciate it.
you need to use template literals syntax, which also means using backticks (`) instead of quotes to surround the string, then, the ${variable} will work
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.