Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

JavaScript Question of the Day Jan. 28, 2025

  1. Incorrect Correct No Answer was selected Invalid Answer

    In the following program, which are the global variables?

    const AMOUNT = 2;
    
    function main() {
        let original = 20;
        let newNum = conversion(original, AMOUNT);
        console.log(newNum);
    }
    
    function conversion(num, rate) {
        let result = 6 * num ** rate;
        return result;
    }
    
    main();
    JavaScript