$(document).ready(function() { //initialize all variables; var damagedone; var comment; var movecount; var attack | Sololearn: Learn to code for FREE!

-3

$(document).ready(function() { //initialize all variables; var damagedone; var comment; var movecount; var attack

$(document).ready(function() { //initialize all variables; var damagedone; var comment; var movecount; var attack1 = $('#attack0'); var attack2 = $('#attack1'); var attack3 = $('#attack2'); var attack4 = $('#attack3'); var attacks = $('.attacklist'); var options = $('.option'); var commentBox = $('.commentbox'); var selfhp = $('#selfhp'); var opponenthp = $('#opponenthp'); var selfhpnum = $('#selfcurrenthp'); var opponenthpnum = $('#opponentcurrenthp'); var mylastmoveused = undefined; var enemylastmoveused = undefined; var meneedtorecharge = false; var enemyneedtorecharge = false; var finished = false; var messagewritten = false; //pokemon constructor class class Pokemon { constructor(name, moves, hp, cry, weakness, resistant, frontimage, backimage) { this.name = name; this.moves = moves; this.hp = hp; this.cry = cry; this.weakness = weakness; this.resistant = resistant; this.frontimage =

10/17/2020 2:58:29 PM

Rishabh

1 Answer

New Answer

+1

You can create a new code bit on code section. Follow guidelines https://www.sololearn.com/discuss/1316935/?ref=app