Lenght check in javascript

string.length
Thyago Mac