JS Prototype not running through its full function
<p>This is my code, I'm attempting to set up a combo lock for a game that will unlock when the user inputs the correct answer. However, when the user inputs something it will always return "The door is unlocked." What am I missing or doing wrong here?</p>

<pre><code>function comboLock(){
  this.comboLock = ["666"];
  this.falseInput = /[^1-5, 7-9]/g;
}
comboLock.prototype.unlock = function(){
  if (this.comboLock != this.falseInput){
    return alert("the door is unlocked");
  }
  else if (this.comboLock === this.falseInput){
    return alert("that is not the correct combonation");
  }
}

$(document).ready(function(){
  $("#button-unlock").click(function(event) {
    event.preventDefault();
    if (this.comboLock = "666"){
      return alert("the door is unlocked");
    }
    else if (this.comboLock != "666"){
      return alert("that is not the correct combonation");
    }
  })
})
</code></pre>