Skip to content
Advertisement

Tag: console

Boolean logic interpretation in google chrome console

I’m having difficulties figuring out why the code below doesn’t work as expected: I keep getting “TRUTHY” no matter what I do. I understand the logic of this code and even when running the source file from the class I’m not getting the expected output. I should get “FALSY” whenever the input is: 0, null, undefined, an empty string or

Advertisement