how to find length of array in javascript without using length method

JavaScript
String blah = "HellO";
int count = 0;
for (char c : blah.toCharArray()) {
    count++;
}
System.out.println("blah's length: " + count);
Source

Also in JavaScript: