April 29, 2022 Test Multiple Conditions with the || “OR” Operator
April 28, 2022 Test Multiple Conditions with the && “AND” Operator
&& AND Operator
( 20 < age && age < 30 )
Both values must be true
April 27, 2022 Program Multiple Outcomes
if / else if / else review
If one of these is true, it will print the output then escape the if / else clause.
April 27, 2022 Boolean Values.
The + next to guess converted the string guess to a number
if (correctGuess ) works the same way as if (correctGuess === true)
prompt allows a user to enter a number from the webpage
April 7, 2022 JavaScript Basics Introducing Conditional Statements.
I started “Introduction to Conditional Statements” today. It’s a refresher from when I took Java, Advanced Java, Python, and other programming courses in school.
If and Else clode blocks example.
This code snippet uses the .toUpperCase() function because strings are case sensitive. This function turns all string in a variable to upper case, then it compares to our answer.
at Treehouse! In this course, I will learn how to work with frontend, backend, and the server side of a web application - The “Full Stack” - Via JavaScript.
Here’s a little more about the course, If you’re curious.
Loading…
Want to print your doc? This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (