I have created a 3*3 matrix using JavaScript code from scratch.
Now I want to give it a border. I want to see 9 squares with a solid border.
I'm thinking about giving the style dynamically inside a loop.
I don't know how to define a variable for a div which has a unique ID.
This is my code:
for(i=1;i<=9;i++){
'div_'+i+'_'+i.style.border= '1px solid blue';
}