Hey guys so here is my code on which I get the weird error of \"Multiple Declarations of mirror\". I have other functions before that but none of them are named mirror... Any id
You have conflicting definitions for mirror. The first clause,
mirror = undefined
is a catch-all, so the definition is considered finished by the compiler. The next clause is then considered to start a new definition. You should remove the undefined line.