Strings 3: String Length

Strings 3: String Length

string_length = document.getElementById('stringLength').value.length;
document.getElementById('lengthResult').innerHTML = 'That string is '+string_length+' characters long';
Comments are closed.