Please enable JavaScript to use CodeHS

Mobile Apps

Events and State

Students learn how to use state values and how to update the state of their app in various ways to create quick, dynamic programs. They will learn how mathematical equations and string methods can be used to alter values as the user interacts with their programs.

Lessons

6.1 Using State to Control Values

  • Using State to Control Values
  • Using State to Control Values
  • Initial State
  • Setting the Location with State
  • Multiple State Values

6.2 Updating State with onPress

  • Updating State with onPress
  • Updating State with onPress
  • Updating State with onPress
  • State Updates Based on Button Press
  • Name to Nickname
  • +1 more

6.3 Using Mathematical Equations to Update State

  • Using Mathematical Equations to Update State
  • Using Mathematical Equations to Update State
  • Updating the Count
  • Full Counter App
  • Easy Calculator

6.4 Modifying Images Using State

  • Modifying Images Using State
  • Modifying Images Using State Quiz
  • Comparing Image Representations
  • Live Code Examples
  • Modifying an Image
  • +4 more

6.5 Using and Modifying Audio

  • Using and Modifying Audio in your Programs
  • Different Audio Formats
  • Different Audio Formats Responses
  • Mood Music Volume
  • Storybook App
  • +1 more

6.6 Using Methods to Update String States

  • Using Methods to Update String States
  • Using Methods to Update String States
  • Upper and Lower
  • Updating the Mood of a String with State
  • Spellchecker

6.7 Challenge: Scorekeeper Pt 4

  • Scorekeeper Pt 4: Functionality with States
  • Mindset Survey 2

6.8 Events and State Quiz

  • Events and State Quiz

Courses that include this module