Two declarations with a comment
- JavaScript code
- var a = 1; // c var b = 2;
Result Minified code: var a=1;var b=2;
Original characters: 27
Minified characters: 16
Size reduction: 40.7%
Comments removed: 1
Literals kept as-is: 0
- Removed 1 comment and collapsed whitespace between tokens.
- Copied 0 string or template literals and 0 regex literals unchanged.
- Size: 27 → 16 characters (40.7% smaller).
The trailing comment and the spaces around = disappear, and the line break goes because a semicolon already ends the first statement.