Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

JavaScript Question of the Day Jan. 29, 2025

  1. Incorrect Correct No Answer was selected Invalid Answer

    In the following program, what is the scope of the variable original?

    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