I came across the following edit: https://stackoverflow.com/revisions/25922292/2
The editor made the code block a stack snippet, but in this case, the code is writing to the console, which doesn't give any visual feedback inside the snippet.
The editor did add a document.write
, but the OP took it out since it ws not part of his code.
Is it okay that people edit other's posts to pointlessly add a snippet?