So I was making loops in a batch file which just keep going until you stop it. I wanted to do this in Javascript, but I wouldn't know how, because my understanding is that Javascript loops are only run once, and it only shows the output of the loop once.
Here is my loop:
@echo off
:loop
echo Hello!
goto loop
So when I put this into a batch file and run it, it will spam 'Hello!' until I close the program. That's what I want Javascript to do, but I don't quite know how to do that, and any help or input would be appreciated, thanks!