I used the above code and passed all the test cases.
I wasn’t expecting to pass with that code.
So, I checked if it’s one of the methods to pass in their hint section.
But It wasn’t there.
Is this code I tried makes sense or was the test code checking broken/had loopholes.?
Expected behavior is to return true if the parameter is a boolean. Since you return true if the parameter is either strictly true or strictly false then it’s all good.
To be honest, I was just trying to console.log out and see what it does . As I am new to coding.
I was surprised to see that this alone passed the challenge. However, I was hoping that I’ll have to make some changes.
So I asked if what I did made any sense. If so, some explanation would be helpful.
Let me know you would solve this challenge