mkjs — 2013-12-23T10:12:26-05:00 — #1
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>
davemaxwell — 2013-12-23T10:24:31-05:00 — #2
This looks like homework. Did you try your demo page in a browser to see what happens?
mkjs — 2013-12-24T03:21:05-05:00 — #3
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...
pullo — 2013-12-24T07:10:56-05:00 — #4
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?
pullo — 2013-12-24T07:13:33-05:00 — #5
Also, does it help to think of your code like this: