I am writing an chess app, in that, to iterate via integer I am using,
for(var i =0; i<8; i++) { var ch = convertToCharector(i); //using ch here...
But it would be more appropriate for me, if I do like
for(var ch='a';ch <= 'h';ch++){ // using ch directly...
which improves readablility.
But In javascript the increment of char (in for loop ch++) is not possible, since they are not stored as integers in memory.
What Could I do to achieve this?
Whether for(var ch='a';ch <= 'h';ch++){ // using ch directly...
way a direct way is not possible? Instead of using a third variable str="abcdefgh", then using str.