Step Assingments/step9/examples/combination/page.js
/*
     * Install a button listener. I assume the
     * button id is the letter we are clicking
     */
Install a button listener. I assume the
button id is the letter we are clicking
Install a button listener . I assume the button id is the letter we are clicking
function installListener(letter) {
        document.getElementById(letter).onclick = function(event) {
            event.preventDefault();
            code += letter;
            update();
        }
    }
function installListener ( letter ) { document . getElementById ( letter ) . onclick = function ( event ) { event . preventDefault ( ) ; code += letter ; update ( ) ; } }
Install a button listener.
Install a button listener .