Im totally new in JS. Could someone help me please? I need to prepare some objects atributes which depends on other objects attributes
How can I achive that?
I tried that solution:
var Photo =  {
      current: {
        coordinates: "2208,1922",
        name: "current"
      },
      start: {
        coordinates: '2408,1822',
        name: 'start',
        newCoordinates: Photo.current.coordinates
        }
  };
I'm getting an error:
module initialization error: TypeError
 
     
    