Truthy and falsy value

what repreents b in the table ? in the video

why 5 and 0 ? gives output as 0 not as true or false

Hi @coding123c
There is a rule in Boolean algebra that states:

0 or (any Boolean number) = (Boolean Number)
1 or (any Boolean number) = 1
0 and (any Boolean number) = 0
1 and (any Boolean number) = (Boolean Number)

Hope this might helps :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.