144
rated 0 times
[
146]
[
2]
/ answers: 1 / hits: 17816
/ 9 Years ago, thu, october 22, 2015, 12:00:00
How can I check the length of in String in JavaScript? Here is a small code example:
if(value != null && value != && value.length !== 10 && !value.match(/^d*$/)){
// do something
}
The expression 'value.length !== 10' doesn´t work. A String must contain at least 10 characters. How can I solve this problem?
More From » javascript