I am trying to figure out setters in dayjs. To that extent, I tested out the following code:
let orwell = dayjs();
orwell.year(1984);
console.log(orwell.format("YYYY"));
My expectation is that the year 1984 will show up in the console. But that is not the case, instead 2021 shows up.
What am I doing wrong?