Good to know
Formatting reconstructs indentation from syntax. It cannot recover original variable names, deleted comments or the original project structure.
Local tool Format JavaScript with a chosen indentation style or compress it for compact output.
Formatting reconstructs indentation from syntax. It cannot recover original variable names, deleted comments or the original project structure.
The formatter parses the input as JavaScript and writes text output without running the program.
The formatter and minifier both read the source field and place their output in the result field.