Pardon the mess, Play My Code is in beta!

READY TO PLAY?
CLICK TO LOG IN!

sign up - lost password

String Class

Strings are created as string literals. These are characters between double or single quotes.

// ways you can create strings
name = "Graham"
surname = 'Smith'

All objects have a 'toString' method which is used to create a string version of that object. A class can override this to create their own version. See the toString method for more information.

length

toLowerCase

toUpperCase

toNumber

toInt

getChar

indexOf

each

split

See Also