I've implemented a small program in JavaScript to count the number of lines of a string of java source code. This was done for one of the Code Kata exercise: http://codekata.com/kata/kata13-counting-code-lines/ Overall, the goal of this exercise is summarised as follow: The mixture of line-...