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
What will be printed to the console when the following program runs:
function main() { let result = sum(mystery(10, 2), mystery(3, 5)); console.log(result); } function sum(first, second) { return first + second; } function mystery(first, second) { if (first >= second) { return first; } else { return second; } } main();
5
15
13
10