If, And, or But.
Getting into some of the Javascript conditionals and logical operators this fine evening. Even though it's very early in the Javascript learning process, I'm glad that so far all of this is making sense to me. I'm understanding when to use if, else and else if. This is probably useful for checking passwords or usernames on sites.
And (&&)...there's more! I can see how important || and ! are going to be. But using && in my code brings me a strange satisfaction that I can't quite explain. Maybe it's just the way two ampersands look together, I don't know.
Anyway...off to see what's next.
Top comments (0)