Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

JavaScript Question of the Day Jan. 14, 2025

  1. Incorrect Correct No Answer was selected Invalid Answer

    What is the output in the following program?

    function main() {
        let x = sumThree(1, 2, 3);
        console.log(x);
    }
    
    function sumThree(one, two, three) {
        let result = one + two + three;
        console.log(one);
        console.log(two);
        console.log(three);
    
        return result;
    }
    
    main();
    JavaScript