Strings 5: Substring

Strings 5: Substring

entered_text = document.getElementById('substringText').value;
value_of_substring = entered_text.substring(5,10);
document.getElementById('substringResult').innerHTML = 'Characters 5-9 are: '+value_of_substring;
Comments are closed.