The simple answer is no, they will not effect each other.
how it works is that each variable name is unique, so m,m1,m2,m3,m4 does not have any affect to each other what so ever:
However depending on the value set to the variable you may access and change data like so m[2] the reason for this is that m is an array or an object of some kind, and you can access the individual elements by using the [] which is probably where your getting confused.
Example of how variables effect eachother:
var a = 'hello'; var b = 'world'; alert(a); //hello alert(b); //world alert(a + b); //helloworld alert(b + a); //worldhello a = b; alert(a); //world alert(b); //world b = 'hey'; alert(b); //hey
as you can see from the examples above if you modify the value of a variable that has already been set it changes the value, if the variable has not already been set its assigned the value;
a nice trick that you should learn self calling anonymous functions, the reason we use these is to create a box to put our code inside so it does not effect anything else outside the box.
Example
var hey = 'hey'; (function(){ var hey = 'bye'; //This is only effective inside the {} alert(hey); //You get 'bye'; //Access the global scope alert(window.hey); //You get 'hey'; //modifiy the external scope window.hey = 'modified from within the function'; //expose vars inside the function scope to the global window: window.exposed = hey; //Remember hey is internal and is set to 'bye'; })(); alert(exposed); //'bye'; alert(hey); //'modified from within the function'
hope you understand a little more now