example.js
function printHeadingCB(err, heading) {
    if (err) {
        console.log(err);
        return;
    }
    console.log(heading * 180 / Math.PI);
}
function printHeadingCB(err, heading) {
    if (err) {
        console.log(err);
        return;
    }
    console.log(heading * 180 / Math.PI);
}
function printHeadingCB ( err , heading ) { if ( err ) { console . log ( err ) ; return ; } console . log ( heading * 180 / Math . PI ) ; }
Gets called every time we get the values.
Gets called every time we get the values .