What is the [0] in String.Split?

Whenever I change the value from 0 to any other number it says its out of range. what exactly is this? thanks a lot,

Most likely you're using javascript where you can't (or couldn't as of 2.6 - it could have changed) declare a character literal.

In c# you'd be using yourString.Split('a'); where a is the character you'd want to split on

In js you need to use yourString.Split("a"[0]); which does the same thing, with the "a"[0] part returning the first character in the string, which is 'a'

There's nothing magical to it, just a workaround for missing javascript functionality, but don't change the 0 to anything else unless the string is longer than 1 character