How to use JavaScript Pretty Print
- Paste the script.
- Pick the indent.
- Copy the result.
About JavaScript Pretty Print
Pretty printing a script means adding line breaks after statements, indenting blocks and putting spaces where they belong. It is the quickest way to make an unreadable one-liner understandable.
The tool does not execute your code. It reads the text, and only rewrites whitespace.