Jessica introduces if statements, a way for your program to decide whether or not to execute a block of code.
Practice this lesson yourself on KhanAcademy.org right now:
Watch the next lesson: https://www.khanacademy.org/computing/computer-programming/programming/logic-if-statements/p/more-mouse-interaction?utm_source=YT&utm_medium=Desc&utm_campaign=computerprogramming
Missed the previous lesson? https://www.khanacademy.org/computing/computer-programming/programming/functions/p/special-processingjs-functions?utm_source=YT&utm_medium=Desc&utm_campaign=computerprogramming
About Khan Academy: Khan Academy is a nonprofit with a mission to provide a free, world-class education for anyone, anywhere. We believe learners of all ages should have unlimited access to free educational content they can master at their own pace. We use intelligent software, deep data analytics and intuitive user interfaces to help students and teachers around the world. Our resources cover preschool through early college education, including math, biology, chemistry, physics, economics, finance, history, grammar and more. We offer free personalized SAT test prep in partnership with the test developer, the College Board. Khan Academy has been translated into dozens of languages, and 100 million people use our platform worldwide every year. For more information, visit www.khanacademy.org, join us on Facebook or follow us on Twitter at @khanacademy. And remember, you can learn anything.
For free. For everyone. Forever. #YouCanLearnAnything
Subscribe to Khan Academy's Computer Programming channel: https://www.youtube.com/channel/UCzYDKG5mmfPPIosXuQ1PvEA?sub_confirmation=1
Subscribe to Khan Academy: https://www.youtube.com/subscription_center?add_user=khanacademy