length function in nodejs code example
Example 1: can't find lenght
it's written length not lenght
Example 2: How to get length of string in javascript without using native length method
var str = userInput[0];
var count = 0;
while(str[count] !== undefined)
{
count += 1;
}
console.log(count)