JavaScript - Swap the top two elements of a stack

JavaScript - Swap the top two elements of a stack

More to explore

Based on this image's title: “JavaScript - Swap the top two elements of a stack