Hi guys,
I’m working through the Basic Algorithm challenges in JavaScript, and have come across what looks like a relatively simple one: check if a value is a primitive boolean.
I know to check the value with typeof, but I was checking if the value was equal to the keyword boolean, and I can see the solution says I need to check if it is equal to the string boolean.
I can’t figure out why? Why am I checking if it is equal to a string??
I’m sure it’s a simple answer but I am a novice so please go easy on me!
Thanks!