Skip to content

Instantly share code, notes, and snippets.

View jvandy83's full-sized avatar

Jared Vandeventer jvandy83

View GitHub Profile
@jvandy83
jvandy83 / gist:5aeb6545fc4e0c5c0da9bf84b02a4502
Created March 6, 2019 16:15
I'm perplexed...can someone clear this up for me???
// Write a function called "removeFromBackOfNew".
// Given an array, "removeFromBackOfNew" returns a new array containing all but the last element of the given array.
var arr = [1, 2, 3];
function removeFromBackOfNew(arr) {