Is with x==8 answer authomatically "set" to bool?
<p>Given that x=5, return the value of the comparison x==8.</p>
<button onclick="myFunction()">Try it</button>
This looks like homework. Did you try your demo page in a browser to see what happens?
Yes. I am complete beginner. We never said it shoudl be bool, it "concluded " it automatilaccly, obviously...didnt it???
I mean, we never wrote word "bool" in this example, but it "knows" it should be written true or false...itis from w3school...i tried...
Don't take this the wrong way, but don't you think it might be an idea to read up on some of the basics first?
Also, does it help to think of your code like this:
This topic is now closed. New replies are no longer allowed.