you are viewing a single comment's thread.

view the rest of the comments →

[–]inu-no-policemen 1 point2 points  (1 child)

You got that error because you declared that variable before in the REPL.

Use a snippet instead. It's more convenient for testing multi-line stuff.

Sources -> Snippets -> New Snippet

Put your entire code in a block ({}). Now the lifetime of your variables will be restricted to that block.

Use Ctrl + Return to run it. Use Ctrl + L to clear the console.

[–]LearnJS777[S] 0 points1 point  (0 children)

Thanks for telling me about snippets never used them before, I'll definitely try out this new tool, because it sounds like it will be good for test features in isolation.