Javascript/文字コード

解説 String.fromCharCode(文字コード )
sample1
sample1code
function s1Func(){
  s1Prompt = prompt("Please Password");
  if (s1Prompt == String.fromCharCode(64,114,105,115,101)){
    alert("Yes");
    location.href = "http://" + String.fromCharCode(97,114,105,115,101) + ".work";
  }else{
    alert("No");
  }
}