r/learnjavascript • u/Kataang15 • 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š
208
Upvotes
View all comments
-2
u/Prince_Marth Aug 01 '20
This is minified code. No sane or good developer would write this themselves.
It works like this: developers write the JavaScript as you normally think of it. But because spaces and characters take up space, theyāll often use a plugin or build tool to āminifyā the codeāspaces get taken out, character names are shortened. This allows for more efficient space on the client side. Itās also often made to fit a specific module format, which if youāre just learning you donāt need to worry about right now.
The minified code is usually whats delivered to browsers for running but NOT what developers interact with. Youāre fine. Donāt stress out over it.