Sorry for my possibly naive question, but I am totally novice to JavaScript.
I do not understand this:
return cordova.exec(success || onSuccess, fail || onFail, "Navigation", "exercise", [programId, levelId, orientation]);
The first two arguments are callbacks (success callback and failure callback),
but I do not understand: two callbacks separated by ||
like success || onSuccess
????
I am confused.
Thanks for your help.