Variables They have a name And variables Have values that can change Variables A part of coding foundation Because variables Store important information! So, just like this box can hold this ring A variable is something that can hold another thing Like a name, or a date, or a high score Or a place, your favorite food, and so much more! You might be confused, have no fear We can try a little example here Say this bucket is a variable, we'll give it a name Whatever is in this bucket we'll call bucketThing! BucketThing is a frog BucketThing is a bear BucketThing is a pizza BucketThing is underwear! Now variables can have a type, are you listening? They can have a type, and here's the main three The variable types, when you are talking to machines Are strings, numbers, and booleans! A string is not a number it's actually made of letters Like your name or the words "I really like sweaters" A string is text, you know characters and letters Just like the sentence "A bird has feathers." Here's a string variable about what day it is We will name this variable dayOfTheWeek DayOfTheWeek is Monday DayOfTheWeek is Tuesday DayOfTheWeek is Wednesday DayOfTheWeek is Thursday! Variables They have a name And variables Have values that can change Variables A part of coding foundation Because variables Store important information! So string variables, what are they good for? When there are words and text to store What if you have numbers, like numbers and math? A number variable is up to the task Numbers are numbers and nothing more No letters, or pictures, just a number, like a score! Numbers are numbers and nothing more No letters, or pictures, just a number, like a score! Here's a number variable to remember the score We will name this variable myPointScore MyPointScore is 2 MyPointScore is 4 MyPointScore is 8 MyPointScore is 1,000,000! So number variables, what are they good for? When there are numbers and numbers to store But there's a simpler one, it can be one of two things It's called boolean variable, it's not a number or a string Boolean, there's a funny name It just means true or false, no in-betweens! Boolean, it can only be two things Either true or false! No in-betweens! Here's a boolean variable to check if you're asleep We will name this variable areYouAsleep AreYouAsleep is true! AreYouAsleep is false! AreYouAsleep is true! AreYouAsleep is false! Variables They have a name And variables Have values that can change Variables A part of coding foundation Because variables Store important information!