JSFiddle - React, Tailwind, and code Playground

by Drath

JavaScript

var Actor = {
    SetPosition: function(i, x, y) {
        i.X = x;
        i.Y = y;   
    }
};
    
Actor.Vaughn = {X: 1, Y: 2};
Actor.Kevin = {X: 5, Y: 10};
Actor.SetPosition(Actor.Vaughn,13,17);

document.write(Actor.Vaughn.X);
document.write("<br>");
document.write(Actor.Kevin.X);