Hi I want to convert this arrow function to a standard function. But the code is not generating the same result when I plug in numbers. where am I off
Original Arrow function (is this anynomous)?
const getMousePosition = (x, y) => ({
x: x,
y: y
});
My code of me trying to turn this into regular function
function getMousePosition(x,y) {
const a= {
x: x,
y: y }
};
getMousePosition(4,5);