| about | help | code help+videos | done | prefs | 
| Given a non-empty array, return a new array consisting of the old array elements, with the last element duplicated. duplicateLast([3]) → [3, 3] duplicateLast([7, 1, 5]) → [7, 1, 5, 5] duplicateLast([1, 0]) → [1, 0, 0] ...Save, Compile, Run (ctrl-enter) | 
Progress graphs: 
 Your progress graph for this problem
 Random user progress graph for this problem 
 Random Epic Progress Graph
Difficulty: 200
Copyright Nick Parlante 2017 - privacy