Cypress Quiz

Correct: 0
Incorrect: 0
Remaining: 14
💡 What will be the output of the following code?
const stack = [];
const addToStack = (n) => stack.push(n);

cy.wrap([addToStack]).invoke(0, 4).then(() => console.log(stack));
A | [0, 4]
B | [4]
C | [4, 4]
D | Error, invoke is not a function
E | Error, 0 is not a function