true || false => true
“” || true => true
Type coercion means that the language converts something for you from one type to another type automatically on the fly
Leave a Comment
Save my name, email, and website in this browser for the next time I comment.
This site uses Akismet to reduce spam. Learn how your comment data is processed.