Tuesday, October 18th, 2011
Sometime you may need to find position of a character in a string, charAt() string method comes in for the purpose.
For instance, when you execute the following code;
var mystr = 'I am a test String.';
document.write(mystr.charAt(3)); // Result will be 'm'
Posted in Javascript | No Comments »
Tuesday, October 18th, 2011
If you need to convert string case in Javascript, you may use the following 2 methods as needed.
toLowerCase();
toUpperCase();
Posted in Javascript | No Comments »
Monday, October 17th, 2011
To get length of a string (in characters) using Javascript we can use the length property.
Below is an example of how to do it;
Posted in Javascript | No Comments »