How to add a score

I would like to add a score using javascript. When i shoot a block it gives me 10 points and will also display this on screen in game what the current score is. I’ve tryed a lot of things and nothing has worked D:

Then tell us what exactly have you tried (code), i’m sure we can tweak it up and it will work.