Yepp, JS if full of interesting things, some help: https://developer.mozilla.org/en-US/docs/Glossary/Truthy https://developer.mozilla.org/en-US/docs/Glossary/Falsy
Btw
!! 0 > false !! "0" > true
Obligatory talk/video: https://www.destroyallsoftware.com/talks/wat
gives different results which is interesting because
"0"==0 > true
btw tried stuff from wat video in node.js and
> {} + {} '[object Object][object Object]'
which is not very sophisticated answer, NaN answer was much wiser :-)
@fanoush started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yepp, JS if full of interesting things, some help:
https://developer.mozilla.org/en-US/docs/Glossary/Truthy
https://developer.mozilla.org/en-US/docs/Glossary/Falsy
Btw
Obligatory talk/video: https://www.destroyallsoftware.com/talks/wat