From 8c899a5efb927210cee8ac8678a1c1e13d7d6148 Mon Sep 17 00:00:00 2001 From: Manish Date: Tue, 22 Aug 2023 10:57:35 +1000 Subject: [PATCH] Data Structures: Learn how a Stack Works --- Data Structures/stack.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Data Structures/stack.js diff --git a/Data Structures/stack.js b/Data Structures/stack.js new file mode 100644 index 0000000..188bd1c --- /dev/null +++ b/Data Structures/stack.js @@ -0,0 +1,5 @@ +// 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");