I was going to ask how is -1 a key name and i noticed instead of {}, congrats we make impossible possible.
xd!
Numbers can be a key name, thoā¦
\> {-1:"bruh"}
< Uncaught SyntaxError: Unexpected token ':'
I donāt think so
{}[-1] = "bruh"
Uncaught SyntaxError: Invalid destructuring assignment target
Wait, itās possible!
IK how to do this
const arr = new Array(0);
arr[-1] = "FOO";
console.log(arr);
let obj = {};
obj[-1] = "foo";
Srry, my bad.
Makes sense lmao.
Interestingā¦
How about -100
?
works!
FR?!!
const array = [];
array["foo"] = "bar";
WORKS?!!
This would be a good question for SO.
Iām [question] banned tho
Actually although it is being placed inside , but the type of it is an object (same with {})
Yeah, IK that.
Now I know why they say itās an object lol.
Fixed
B r u h
In the C community, undefined behavior may be humorously referred to as "nasal demons "
āNasal demonsā XD
im surprised i have my regular role still
My dad literally just said: āI want to hold back information from you, so I block websites to keep you from learning informationā.
As in, news and other things.
My dad wants to be like China and limit the press
How much do you have to do to keep your regular?
This topic serves to help staff to make a psychological assessment of forum users and is used for various psychiatric tests.
50% of 100 days
50% of what?