But the really interesting part in that document is the line highlighted in green below that takes a string from AppInventor in this format
"0.0,30.24163,-92.71774,2014.52"
and converts it to => [0.0,30.24163,-92.71774,2014.52]
which is a JSON array.
Then you can use javascript to access each element in the list:
list[2] contains: -92.71774
which is the third element of the array (arrays in javascript start with an index of 0 rather than 1 as in an App Inventor list)
:
<script>
var list = eval('[' + window.AppInventor.getWebViewString() + ']');
var alt = list[0];
var lat = list[1];
var lon = list[2];
var yrf = list[3];
var wmm = new WorldMagneticModel();
var dec = wmm.declination(alt,lat,lon,yrf);
window.document.title = dec;
</script>
: