Minification refers to the process of removing unnecessary or redundant data without affecting how the resource is processed by the browser - e.g. code comments and formatting, removing unused code, etc.
Many online tools provides have a similar process which involve the following steps:
1.Paste in your source code input section.
2.Click JS minify a button to minify or compress the code.
3.Copy to clipboard or select all to copy the minified code output.