mef — 11/21/2023, 6:07:09 PM

hey wasteof! I’ve got a challenge for you all, if

function theend(m){return null??![]+!![null]*(!![null??null]+!!null)*(!![void(null)]+!![]??null)+((!![]+!![undefined])*(!![]+!![null??null])*(!![void(!m?.m)]+!![[m]]+!![null/0])-!!!![])**(!![0/0/null]+(!!![undefined]??!![![]])+!![])+((!![![],![],null/0+undefined]+!![void(![m?.m?.m||m])])*-!![![1+null]]*(!!!!!!!![undefined/null]+!![m?.n]*!![undefined/0][!![]*![]]+!![void(void(null)/0)]+!![m?.n?.m]+!![null]&&!![undefined]+!![m][0]+!![undefined]+!!!![null*(void(m)/0)]+(!![void(void(!![]))]+!![m]+!![!![]]+!![[!![]]])*(!![m?.b?.n]+!![null?.class??![]]+!![![]&&![]]+!![null||void(m?.b)]))??(!![void(n)/null]+!![![null]]||![])*(!![null]+!![0/0]+!![void(undefined)])+(!![0/null]+!![!!![null]+undefined]))-(!null*![]??null+!![void(!null)]+!![])+(-!-!null+!![undefined/0]+!null+(!![null]+!undefined)*-!![![]-!null])-3-((!![!null]+!null+!void(undefined))*(!![!!null/0]*!null+!![0/3+m]+!null+!![!![null]??!null]))+(-![]-!null)};console.log(theend(!!null/0))

is run, what will the console display? (try to figure it out without running it, jk please don’t put yourself through that sort of pain)

♥ 6 ↩ 2 💬 25 comments

comments

pkmnq:

needs more backticks

11/30/2023, 1:17:03 PM
individual:

https://pastebin.com/kkMxAdpt

11/22/2023, 2:23:23 AM
mef:

Wow, great job!

11/22/2023, 12:02:38 PM
zaydmohammed:

when i run it on onlinegdb.com, it creates so many errors i cant copy and paste it into this comment

11/21/2023, 10:18:05 PM
zaydmohammed:

this is what i did before you did!

11/21/2023, 10:13:49 PM
late:

nice

11/21/2023, 8:27:05 PM
mybearworld:

Well, now you've forced me to do it

11/21/2023, 6:20:35 PM
mef:

good luck I guess

11/21/2023, 6:22:11 PM
mybearworld:

Pasting it into VSCode and it didn’t even detect it as JS, wonderful start

11/21/2023, 6:30:20 PM
mybearworld:

oh god this is pain

11/21/2023, 6:48:41 PM
mef:

I told you so

11/21/2023, 6:50:29 PM
mybearworld:

It’s so incredibly simple, yet so easy to mess up on, you have to be really really careful with this

11/21/2023, 6:51:19 PM
mef:

fr, I made it like a maze, because some parts may be completely nullified or do nothing, or be in several layers of confusing nesting

11/21/2023, 6:52:58 PM
mybearworld:

The amount of 1*s in this is…something

11/21/2023, 7:17:43 PM
mybearworld:

I have… a result, it’s probably definitely wrong though (or is it just some random number?)

11/21/2023, 7:37:36 PM
mef:

what’d you get?

11/21/2023, 7:58:49 PM
mybearworld:

ok so i’m wrong then, probably got the third pair of brackets wrong - operator precedence is annoying

11/22/2023, 5:55:59 AM
mybearworld:

I think I know what I did wrong, I forgot how && works

11/22/2023, 5:58:53 AM
mybearworld:

I have now gotten https://i.ibb.co/XkkFnnQ/spoiler.png and, after fixing something, https://i.ibb.co/kBS7Z04/spoiler2.png, I have a suspicion on what it might be lol

11/22/2023, 6:09:11 AM
mybearworld:

I hope I'm not totally wrong here, though that'd be a funny coincidence

11/22/2023, 6:12:02 AM
mef:

you’re really close on both of those

11/22/2023, 12:01:38 PM
mybearworld:

I found and fixed another mistake, is it really https://i.ibb.co/BPXYn0X/spoiler3.png?

11/22/2023, 1:12:45 PM
mybearworld:

https://gist.github.com/mybearworld/81926f50a3684e27704745c59654f400

11/22/2023, 1:16:34 PM
mef:

you are correct!

11/22/2023, 3:06:40 PM
mybearworld:

🎉

11/22/2023, 3:14:21 PM