I sometimes run into small issues when doing my JavaScript projects. That is because most build in functions of JavaScript run X,Y if positions are needed. (In that order).
But when I build a 2D Array I start out with Y, it seems more logical for me to to run the X axis horizontal. If I am bad at explaining it, let me show you:

So my loops look like this:
for(var y = 0; y < 10; y++){ for(var x = 0; x < 10; x++){ console.log("Doh!"); } } Is this so insane? I would like to convert to the normal practise so that I have an easier time while building my game and don't have to do constant switcherroos.
So why is it X before Y ?
Edit: Here is another example, and probably the main reason for my confusion: X is Horizontal, and Y is Vertical in my books..
[ [0,1,2,3,4], [0,1,2,3,4], [0,1,2,3,4], [0,1,2,3,4], ] 