A cross-platform mobile application has the following file structure:
What happens when the application is deployed to an Android device and the function
getPlatform() is invoked?
A.
The invocation will return the value bar because the Android version of MyApp.js is appended
to the common version of MyApp.js.
B.
The invocation will fail with a JavaScript error because the function getPlatform() was not
defined in the Android version of the MyApp.js.
C.
The invocation should return the value bar, but it will return the value foo because the
assignment myPlatform = βbarβ; is declared ona local scope (missing the var definition).
D.
The invocation will return the value foo because the Android version of MyApp.js does not
declare a getPlatform() function andWorklight will fallback to the common implementation.
Explanation: