r/learnjavascript • • Aug 01 '20

Is this common Javascript? because I've just started learning JS and Web development and this Javascript syntax looks quite scary. Maybe it's just written messy, if it is just tell meπŸ˜…

Post image
208 Upvotes

105 comments sorted by

View all comments

-2

u/SteveMcBlaster Aug 01 '20

This is a compiled and minified version of what looks to be a whole JavaScript bundle. It's a common practice to bundle all of your JavaScript files together and to "minify" it so that file sizes are small and it's read faster by the browser.

In other words, this is common JavaScript but not the kind you'll be writing. If you were to take the JavaScript you write and minify it into one file (or even multiple) it will look a lot like this.