I have the following code:
print("possibleImageName: " + possibleImageName);
var a = possibleImageName.split(".");
print("a: " + a + " typeof a " + (typeof a));
print("a.length: " + a.length);
With the following output:
a: [Ljava.lang.String;@c0133e typeof a object
However, in a browser console, I get the expected behavior of
Why is a ending up as a java string, and what do I do about it? I tried using [inline].toString[/inline], but it didn't help.
BTW, what is the tag for inline code? I've hunted around for a mention of what markup this forum uses, and I can't find any. I also looked around at the Discourse site, and despite the long FAQ, no mention of markup. As best as I can tell Discourse uses Markdown, which is not what this forum seems to use.