A string is a collection of characters. Most of the times in scripts, there is a need to work with strings. JavaScript provides various properties and methods to work with String objects. Whenever a String property or method is used on a string value, it will be coerced to a String object. One most frequently used property on String objects is length. The length property gives the number of characters in the given string. Consider the following example: var str = “Hello World”; var len = str.length; The value stored in the len variable will be 11 which the number
The post What is the use of the string object in javascript Programming appeared first on Coding Security.
What is the use of the string object in javascript Programming
read more
Tidak ada komentar:
Posting Komentar