There are various reasons to minify JS code:
- Quicker and faster download times for your users.
- The minified JS code reduces the bandwidth consumption of your website.
A JS Minify Example:
// To Changing heading:
// Change paragraph:
document.getElementById("myP").innerHTML = " this is paragraph.";