|
Newsletters
|
|
|
|
|
WMLScript Reference
WMLScript Reference
WMLScript > String > trim()
trim() - The trim Function
Usage: trim(string)
Description: Returns a string where all trailing and leading white spaces in the given string have been trimmed.
Example:var a = "Hello";
var b = " Bye Jon . See you! ";
var c = String.trim(a); // c = "Hello"
var d = String.trim(b); // d = "Bye Jon . See you!"
Bookmark this page
|
|