Hey everyone. I"m really new to Javascript (self teaching). I'm writing some random code for practice, base on the Pokemon gameboy game. I'm doing something wrong, but I"m not sure what it is. The prompt runs with no issue, and I can place the input. But, after that, nothing happens. What am I doing wrong?

// JavaScript Document
var Joey=prompt("Youngster Joey wants to battle! Do you accept?").toLowerCase {
if (Joey===yes) {
console.log("Excellent. Prepare!");
}
else {
console.log("You can't run from a trainers challenge!");
}
}
var JPokemon=function(math.random() * 2) {
if (JPokemon===1) {
console.log("Pidgeot, I choose you!");
}
else if(JPokemon ===0) {
consolelog.("Raticate, I choose you!");
}
else {
console.log("Sandslash, I choose you!");
}
};