here is the code for the arrays I'm using. astrosCaught is the current score. It increments by on hit detection via astrosCaught++.
var highscore = ;
var scoreKeeper = ;
if (astrosCaught > highscore)
here is the code for the text
ctx.fillText("high score:" + scoreKeeper, 10, 64);
the project is located at http://dtc-wsuv.org/rhanrahan16/final477/