top

STRING

** This class will not be supported in 2015.

   All functionalities of String class are more improved, integrating with CAPH. Therefore String class is not supported since 2015 Smart TV. To use functions of String class, refer to here.


Defines the string formatting.

You can declare String class like this :

  ex) var str = "   OK   ";


Contents

Methods

trim

Description
This function removes spaces from the beginning and end of the string.
Parameters
none
Return■String
  - trimmed string
Emulator SupportN
SDK ConstraintNone
Example
var str = ('     OK    ').trim();   // str is 'OK'