I am currently making a tiny script that tags cordenades in an array:
var paises = ['spain','australia'];
var leftX = ['270','575'];
var topY = ['60','220'];
When I need to access them:
clase = 'spain';
var left_ = leftX[paises.indexOf(clase)];
var top_ = topY[paises.indexOf(clase)];
This might be confusing for my workmates to update. How could I make it easier?