L8V2L Posted June 19, 2014 Share Posted June 19, 2014 voteable = (age & 18) ? "Too young":"Old enough";<-- I'm currently in the process of going through this tutorial a couple of times... and I dont remember that.http://www.w3schools.com/js/js_comparisons.aspbottom of page. Link to comment Share on other sites More sharing options...
justsomeguy Posted June 19, 2014 Share Posted June 19, 2014 That should use <, not &. A bitwise AND doesn't work there. Link to comment Share on other sites More sharing options...
L8V2L Posted June 19, 2014 Author Share Posted June 19, 2014 (edited) That should use <, not &. A bitwise AND doesn't work there.... yes, I know, that why I post it here, when I saw it in the tutorial. the JS one, and I been trough it, and haven't see it like that before hence the title of this thread. Edited June 19, 2014 by L8V2L Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now