How to save data (high score, audio toggle etc) in cocos creator?

Seems that the simplest way is to use the local storage: cc.sys.localStorage.setItem(key, value) to save, cc.sys.localStorage.getItem(key) to load.

hi, I am new to this engine. I am creating a small activity and I need to store score and volume control data in this activity. Any suggestions or help will be appreciated. Thanks in advance.

Thanks for the reply. But I am sorry to say that I dont know how to use this code as I have never created anything using this and also its my first activity with cocos creator. Can you explain how can I use it. Give any example if possible.
As I have two things in my activity, one is high score and the other is levels where stars can be stored if level is passed. Any help will be appreciated. Thanks in advance.

We have docs: http://www.cocos2d-x.org/docs/creator/manual/en/advanced-topics/data-storage.html?h=storage

thanks mate. I will go through it and revert u back.