Open mukul0596 opened 5 years ago
Make it a habit to indent your code properly, like here and here. Other than that, this works fine.
Also, please don't re-declare variables - here Instead declare var i once outside the if block and then do the assignments.
var i
if block
Make it a habit to indent your code properly, like here and here. Other than that, this works fine.