The code on website does not work to print target... stages shows undefined...What is missing?

import exec from ‘k6/execution’;

export const options = {
stages: [
{ duration: ‘5s’, target: 100 },
{ duration: ‘5s’, target: 50 },
],
};

export default function () {
console.log(exec.test.options.scenarios.default.stages[0].target); // 100
}