I am creating a todo app with javascript. I am trying to set a variable call ttlTasks that increments whenever a new task is created. However The value in the variable is not incrementing when I do ttlTasks++;. I believe this is because of something wrong in my variable scope but I can not find the error anywhere. Can anyone help me? this is the jsfiddle: http://jsfiddle.net/4bcv82t9/1/ I recommend expanding the result when run the program or visit
http://54.172.112.28/