For example if I declare:
var x = … // get result from some API
Will this result be available for use the next time I open the app or should I store it locally on the device ?
Phonegap variable storage is not persistent. If you need to store value, consider using localStorage or a database