Variables in the HTML body?

I have just started learning javascript and HTML, so this might sound really dumb since it might not even be possible. But I don't know, so I came here to ask.

I have been following an online javascript course, and it taught me to create variables. Now, my question is, if I set a variable (created through a prompt), is it possible to call that variable back in the HTML body?