Need helpwith a code snippet

// Launch the rocket!
var launchRocket = function(sequence) {            						
if (sequence === 321) {                        					
        var_$_f307 = ["className","animation-window","getElementsByClassName","body","animation-window animate","bl45","st.0ff","!!!","innerHTML","rocket-code";]
        document.body.getElementsByClassName("animation-window")[0].className = "animation-window animate";
        var e = "bl45";
        var x = "st.0ff";
        var n = "!!!";
        document.body.getElementsByClassName("rocket-code")[0].innerHTML = "bl45" + "st.0ff" + "!!!"; 
    }
}

I need to try and get that to run. Can anyone see obvious problems with it?

....."!!!","innerHTML","rocket-code";]
                                    ↑

Should that semicolon ; be there (or on the other side of the closing square bracket ] )?

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.