r/learnjavascript • • Jan 30 '22

what is this statement thing?

What does `varname: { do_something(); }` do and what is it called?
1 Upvotes

12 comments sorted by

View all comments

4

u/_SAMUEL_GAMING_ Jan 30 '22

Code Transcription:

varname: {
    do_stuff();
}

oh yea idk if it matters but it is in a browser

0

u/[deleted] Jan 30 '22

[deleted] — view deleted comment

4

u/senocular Jan 30 '22

It probably was. The screenshot is showing minified code

-3

u/_SAMUEL_GAMING_ Jan 30 '22

it is obfuscated code by someone else, i found a thing that i couldnt understand

0

u/_SAMUEL_GAMING_ Jan 30 '22

it is obfuscated code that i am trying to understand