Beyond Javascript's true and false: Truthy and Falsy
When you code, and you have to write an if statement like lines below:
if (x_value){
//some code here
}
what do you think is logically correct value of the x_value? Either true or false, right?
In Javascript though, you'll see some condition where ...
eknotes.app2 min read