A code step’s output is determined by what the step’s code returns.

For example, if a code step returns an object, the output will be that object. If a code step returns a string, the output will be that string.

CODE_STEP
return {
  name: 'Alice',
  age: 25,
};
ANOTHER_CODE_STEP
const { name, age } = CODE_STEP.output;
console.log(name); // Alice
console.log(age); // 25

Or if the code step returns a string, the output will be that string.

CODE_STEP
return 'Hello, world!';
ANOTHER_CODE_STEP
const message = CODE_STEP.output;
console.log(message); // Hello, world!