My situation is in regards to Booleans

Tell us what’s happening:
When the strings have quotes, are they disqualified from being able to be used in the function or does it pop up in the console?

  **Your code so far**

function welcomeToBooleans() {

// Only change code below this line

return false; // Change this line

// Only change code above this line
}
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36 Edg/94.0.992.31

Challenge: Understanding Boolean Values

Link to the challenge:

can you please give more details on your question? I have difficulties understanding what you are talking about

I’m not sure what you mean.

"false" is a string, not a boolean. It is a truthy value, so if you evaluate it as a boolean it will not behave the same way that false does.

"false" === false is false.

So, I was wondering what the difference was between a boolean and a string. :slightly_smiling_face:

A boolean is a type that can only have one of two values: true or false.
A string is a type that is an ordered sequence of characters. The word “true” is a string, and so is “adammarentis” and “This is a string!”.

That makes so much sense. :slightly_smiling_face: Thankyou so much Ariel. :slightly_smiling_face:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.