about | help | code help+videos | done | prefs |
Write a method that returns an array with all of the Star Wars character names from the input array in the same order they were originally in, but with all occurrences of "JarJar" removed. Your resulting array should be the same length as the original array but with 'null' padding out the end of the array for each occurrence of "JarJar" that was removed. mayTheFourth_2016(["Aniken", "JarJar", "EbbJi RoDel", "JarJar"]) → ["Aniken", "EbbJi RoDel", null, null] mayTheFourth_2016(["Luke", "R2D2", "C3PO", "Darth Vader", "Darth Maul"]) → ["Luke", "R2D2", "C3PO", "Darth Vader", "Darth Maul"] mayTheFourth_2016(["JarJar"]) → [null] ...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: 290
Copyright Nick Parlante 2017 - privacy