Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Basics (Retired) Making Decisions with Conditional Statements The Conditional Challenge Solution

Ryan B.
Ryan B.
3,236 Points

&& vs ||

When signing up with a website (whatever it may be) and they ask to fill out all the fields with asterisks next to them but the telephone field does NOT have an asterisk, is this a situation where && || conditional statements are running in the background?

1 Answer

There are possibly many ways to do that. So there are probably many answers to this, but I think one of the simple ways that is done is with HTML5 "password" input type. You can check an example of it here.

Ryan B.
Ryan B.
3,236 Points

Thanks Gloria. Once I complete the JavaScript basics i believe the next lesson is on HTML forms. :-)

You are welcome :) Good luck with it.