Might sound complicated, but let me show you with code
const createCharacter = () => {
...
...
return [name, age];
};
const [userName, userAge] = createRefreshToken();
But I need to create the same userName and userAge variables when the function returns an object not an array
return { name, age };
or with the same variables' names
return { userName, userAge};