Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Hazarth there is array.
But are you sure it's a char[6] and not a const char* ? (char[6] being on the stack/heap and const char* being in the data segment of your executable).
Also, in C it would be a char[7] 😉 -
_false: [string, string, string, string, string] = [„F“, „a“, „l“, „s“, „e“]
„False“ === _false.join(„“)
now its true -
Hazarth94845y@MagicSowap const char* would be more likely, also shit, you're right, it would be char[7]! I thought I included the terminator xD but I was thinking in terms of the index and not length.... Silly me
-
SomeNone7135yIt's obviously a trick question… having quotes makes it a string.
Of course that doesn't mean that JavaScript would not try to coerce it to any other type if the situation asked for it. -
@SomeNone It starts with a capitalized F.
So no, it will always be a string in js We dont have False and True, just false and true
Hmm....!
joke/meme