- Home /
how do you make a javascript built in string array
I'm trying to convert some cs code to javascript
var productIdentifiers = new string[] { "200c", "500c", "1000c"};
I've tried this
var productIdentifiers = ["200c","500c","1000c"];
but it doesn't seem to work the same for some reason. In the unify wiki on which arrays to use it implies they should be equivalent.
I have some CS code from prime31 storekit that asks for a string array which it uses in a call Store$$anonymous$$itBinding.RequestProductData(productIdentifiers);
That function takes a string array and uses join to turn it into a regular string. In the javascript case it sends in "" but in the CS case it sends in the string "1000c,200c,500c" at least I think it does after reading the debugs.
You'd have to post more code, since what you have here is equivalent to the C# version.