freeCodeCamp/Data Structures/stack.js

6 lines
244 B
JavaScript

// https://www.freecodecamp.org/learn/coding-interview-prep/data-structures/learn-how-a-stack-works
var homeworkStack = ["BIO12", "HIS80", "MAT122", "PSY44"];
// Only change code below this line
homeworkStack.pop();
homeworkStack.push("CS50");