Educators & parents: You can do this Hour of Code Activity as a class or students can work on it independently. If you have any questions or need help, email firstname.lastname@example.org.
What should I eat for breakfast?
Sometimes it's difficult to make healthy choices when you're hungry and quickly want to find something to eat. There is a huge variety of health-related apps, which help nudge people to make better choices- things like keeping track of calories, ensuring certain types of nutritious foods are eaten, or helping to monitor exercise.
One of the most challenging parts of eating healthy is planning what we should eat ahead of time. That's where arrays come in handy. An array is a way to store a list of information in our app - in this case, we want our array to hold a list of healthy food items. That way we'll have it ready ahead of time and make it quicker and easier to make wise food choices in the future.
Can you think of a list (or an array) of foods that can be a part of a healthy meal?
Follow along in this video with Ms. Hayley to create a Healthy Meal App that can help anyone make the best decisions for breakfast, lunch, and dinner. You'll learn how to use arrays, as well as a few other essential skills for web programming like using coordinates, conditionals, and more!
Now you have your very own Healthy Meal App to help you plan any meal of the day!
Bonus challenge: Do you know someone who is vegetarian? Vegan? Allergic to peanuts? Customize the meal suggestions for their dietary needs and share your app with them so they know you were thinking of them!
We just sent you an email. Please click the link in the email to confirm your subscription!