this will make it so that if the parameters are only equal to boolean values, it will return true, otherwise it will return false.
You can remove → else if (x== 1) { return false;}, because the code is no longer taking into account any true value rather than boolean values only.
Thanks for this, because I also had trouble in a different area, realized I just needed to have a default parameter for the function parameter to be called.
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge. How to Help Someone with Their Code Using the Socratic Method
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.