JavaScript Fundamentals: Using Conditionals

added by JavaScript Kicks
6/17/2019 6:56:00 AM

568 Views

When we want to introduce logic & make decisions in our programs, we use conditionals. With conditionals, we can control the behavior of our code - by determining whether or not pieces of code can run. For example, when using a weather app, if the weather is sunny we could see a sun image, or if its raining we could see a rain-cloud image.


0 comments