Methods on Strings

I just discovered you can run methods directly on Strings. Not particularly exciting but interesting nonetheless.
Try this one:

trace('upper case'.toUpperCase());

It will trace out this:

UPPER CASE

I'm yet to discover a scenario where this would be useful but it is fun to know all the same!

  • Twitter
  • Reddit
  • Digg
  • del.icio.us
  • Facebook
  • RSS

Leave a Reply