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
-
pain04861716yActually I think @HelloBaze has the right approach. Simply commenting out his const declaration changes MY_MIND from true to false.
-
@pain0486 No it changes it to undefined.
But it changes it so technically its right -
pain04861716y@WIPocket that is entirely dependent on
what language your talking about. In quite a few strongly type languages booleans default to false. JS would definitely default to undefined though. -
In c++ you could just const_cast it or add a regular pointer to it and change via the pointer
-
@WIPocket in terms of it being undefined, that resolves to false when loosely compared, at least in js
-
-
@WIPocket lol I have a love/hate relationship with JS.
0 == false
> true
0 == "0"
> true
"0" == false
> false
u wot m8 -
-
@WIPocket I love the things that you can do with JS but man is it retarded in certain ways 😂😂
Related Rants
Try if you can
joke/meme
js
javascript
programming
developers
development