Can you write ANY JavaScript number using only these 3 symbols?

preview_player
Показать описание
I've given myself a challenge to write any JavaScript number using only 3 symbols, plus, left square bracket, and right square bracket. Spoiler - it was a success!

Рекомендации по теме
Комментарии
Автор

His 1 key is broken... But he's incrementing 1... This is dedication.

drewbutler
Автор

bro extracting 'e' killed me. this content is insane lol

jamdonut
Автор

This is such a stoopid challenge. It would never have occurred to me to go big to get the decimal point. 😁

divingeveryday
Автор

Dude your content is so good, how did youtube not recommend this before?

LegalzinhobrGames
Автор

Wonder if you could do the same thing by using minus and brackets? Would have to figure out how to do the decimal?

-2: --[--[-[]][-[]]][-[]]
-1: --[-[]][-[]]
0: -[]
1: -[--[-[]][-[]]]
2: -[--[--[-[]][-[]]][-[]]][-[]]
undefined: [][[]]
NaN: --[][[]]

claytonsingh
Автор

This Also Returns 10:
[[]]["length"]+[0]

somerandomuserfromootooob
Автор

Nice. Are there complex numbers in javascript? Natively? Maybe some constants, like pi, e?
I think I saw something similar in some CTF video, maybe from LiveOverflow, but it was about constructing strings, not numbers.
I like your visualization tool.

querela
Автор

Could you represent the whole latin alphabet using only these symbols? Maybe print a "Hello World"

paulcosma
Автор

There is a JavaScript-based programming style called JSFuck that only uses six different characters to write and execute JavaScript code.

RifqiPriyo
Автор

1:03 +[] is basically a shorthand for
+[].toString()
The [].toString() returns "", and since an empty string is a falsy value, casting it to a number will return 0
That's why +[] === 0

avi
Автор

"My key 1 is broken"... Oh, so that explains why he built this way to generate numbers for you...

ciberman
Автор

Great way to obfuscate your code. Immagine someone reading that code! 🤣🤣

maurox
Автор

Next challenge every Letter in englisch alphabet

redcrafterlppa
Автор

Can you call a function with only these three characters?

MrChelotta