+ 2
Help me in js/c
please make a JavaScript program on HTML that can get data from outside (I mean from the input tag) and count the length of the sentence.
1 Answer
+ 9
<input type="text" oninput="console.log(this.value.split('').length)">
Assuming length means no of characters (including spaces).