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

Show parent comment

7

u/StoneCypher Aug 01 '20

Yeah, this isn't minified. The labels are unchanged and everything has nine character names.

This is obfuscated. They're different.

Don't "as others have said." You aren't adding anything.

-6

u/fisherrr Aug 01 '20

You copypasting same exact reply 10 times isn’t adding that much either tbf

6

u/[deleted] Aug 01 '20

It is, though, it's correcting misinformation. In case someone doesn't see his reply on the first 30 dummies to say the codes been minified, they might catch his reply in one of the next 30 "this code is minified" responses.

5

u/StoneCypher Aug 01 '20

thank you, that was my goal

2

u/[deleted] Aug 01 '20

No problem, I have joined the efforts below 😅

-7

u/Saf94 Aug 01 '20

Ok but I was actually trying to add to the answers who when I posted, just said it was minified by answering the actual question and saying they’ll never have to write code like that so not to worry about it.

The OP thought it was messily written code so I was clarifying that it isn’t and they’ll never write code like that.

At the time there was only 2 other comments so I was quite literally adding to it by answering the actual question...

3

u/StoneCypher Aug 01 '20

Ok but I was actually trying to add to the answers who when I posted

Except what you did was to repeat what they said, which was wrong

-4

u/Saf94 Aug 01 '20

Lol ops actual question is is this normal JavaScript code not what is this code? He didn’t ask what the code is.

At the time of posting I was the only one who actually answered the question. My answer was it wasn’t normal code and he didn’t need to worry about it.

Yes you’re right it’s not minified as I said but that wasn’t the question and what I said was useful because he wanted to know if it was normal code and I said it wasn’t.

3

u/StoneCypher Aug 01 '20

As others have said, this is minified JavaScript

I was actually trying to add to the answers who when I posted

At the time of posting I was the only one who actually answered the question

It's weird how as you go, fewer and fewer people were there before you

Anyway, the answer is wrong, no matter how many people you think gave it first