Senin, 30 Januari 2017

How to work with built-in objects of String and Number in javascript

String object:  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 post How to work with built-in objects of String and Number in javascript appeared first on Coding Security.


How to work with built-in objects of String and Number in javascript
read more

Tidak ada komentar:

Posting Komentar