I was trying to display my output from a variable by using
print()
now it just launches the browser printer prompt. If I hit cancel it just reopens. I can’t change or reset the code. The built in loop protection doesn’t help here because there is a delay between the print function running and me clicking cancel.
You didn’t break it. Use console.log(). JavaScript doesn’t use print() like that.
for your example, console.log(yourVariable); if you have lots of lines of code and you want to make sure you’re outputting the correct thing, use console.log('description here', yourVariable);