Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
Assigning to a variable is updating the variable's value. For example: ``` int num = 4; // This initializes num with the starting value of 4 num = 10; // This assigns a new value, 10, to num num = 0; // This assigns a new value, 0, to num ```