String object
The String object is used to manipulate a stored piece of text.Examples of use:
The following example uses the length property of the String object to find the length of a string:
| var txt="Hello world!"; document.write(txt.length); |
| 12 |
| var txt="Hello world!"; document.write(txt.toUpperCase()); |
HELLO WORLD!
No comments:
Post a Comment