asynchronous programming

Platform: ??

Battery level: ??

Location: ??

URL ??


Sample code
function init(p) {
//write your code here
}
function check() {
//write your code here
}