You should read the manual and also do the tutorials first. You can do local high score lists using the web storage object, or you can use something like a database (MySQL, Cloud, etc...) to store the data and then retrieve it when the user plays. It's not really a simple topic that can just be answered that quickly.
If you don't want to build your own you can also look at the Clay.io plugin as well...