Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

JavaScript Question of the Day Jan. 20, 2025

  1. Incorrect Correct No Answer was selected Invalid Answer

    What would be the output of the following code?

    function main() {
        let x = 3;
        let y = 12;
        let value1 = product(x, y);
        let value2 = quotient(y, x);
    
        let result = quotient(value1, value2);
        console.log(result);
    }
    
    function product(x, y) {
        return x * y;
    }
    
    function quotient(x, y) {
        return x / y;
    }
    
    main();
    JavaScript