Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

JavaScript Question of the Day Jan. 27, 2025

  1. Incorrect Correct No Answer was selected Invalid Answer

    In the following program, which are the local variables of the function conversion()?

    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