Complete the code to add an element to the top of the stack.
stack.[1](5);
The push method adds an element to the top of the stack.
Complete the code to push a variable value onto the stack.
const value = 10; stack.[1](value);
Use push to add the variable value to the stack.
Fix the error in the push operation code.
stack.[1] = 20;
You cannot assign a value directly to push. Instead, call push as a method with parentheses.
Fill both blanks to push the sum of two numbers onto the stack.
const a = 3; const b = 7; stack.[1](a [2] b);
Use push to add the sum a + b to the stack.
Fill all three blanks to push the uppercase version of a string onto the stack.
const word = 'hello'; stack.[1](word.[2]().[3]());
First trim spaces with trim(), then convert to uppercase with toUpperCase(), and push the result onto the stack.
