📺 "One project. One language. Three apps." Learn more in our upcoming code sharing webinar!

NativeScript Core

Data Conversion

Being two different worlds, Java and JavaScript use different data types. For example java.lang.String is not the same as the JavaScript's String. The NativeScript Runtime provides implicit type conversion that projects types and values from JavaScript to Java and vice-versa. There are several corner cases - namely with different method overloads, where an explicit input is required to call the desired method but these cases are not common and a typical application will seldom (if ever) need such explicit conversion.

See Also