I have two questions in relation to this topic. I don’t want to publish spoilers so I’m going to try to just hint below as to my solution and the FCC solution to which I have a question.
I solved this equation with if/else, although I wasn’t able to do it within a single paratheses. E.g.
(if bool === true || false)
This returned only the first boolean I typed. Since I have included
|| why wouldn’t that allow both booleans to be considered?
The FCC solution uses
bool and then triple-equals to “boolean”, which I find highly confusing. What is the purpose of this? First, isn’t “boolean” a string and what does that have to do with what is being checked for?
Thank you for your assistance in this matter.
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36.