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
In the following program:
function main() { let num = 5; addMagicNum(num); } function addMagicNum(incoming) { let magic = 12; let total = incoming + magic; console.log(total); } main();
which variable is known as an argument?
num
incoming
magic
total