SyntaxFix
Write A Post
Hire A Developer
Questions
Your code will count the number of tabs and not the number of spaces. Also, the number of tabs will be one less than arr.length.
arr.length