Step Assingments/step9/examples/combination/page.js
/*
     * Update the code and status paragraphs to indicate
     * the current word and lock status
     */
Update the code and status paragraphs to indicate
the current word and lock status
Update the code and status paragraphs to indicate the current word and lock status
function update() {
        if(code === '') {
            document.getElementById("code").innerHTML = "&nbsp;";
        } else {
            document.getElementById("code").innerHTML = code;
        }
        document.getElementById("status").innerHTML = code === secret ? "Open" : "Closed";
    }
function update ( ) { if ( code === '' ) { document . getElementById ( "code" ) . innerHTML = "&nbsp;" ; } else { document . getElementById ( "code" ) . innerHTML = code ; } document . getElementById ( "status" ) . innerHTML = code === secret ? "Open" : "Closed" ; }
Update the code and status paragraphs to indicate
 the current word and lock status
Update the code and status paragraphs to indicate the current word and lock status