about | help | code help+videos | done | prefs |
allAboutStringsPart2
Given a string with at least 3 characters return a list of its 1) length 2) first character 3) last character 4) middle character if it has an odd number of characters, else middle two characters allAboutStringsPart2('LASA') → [4, 'L', 'A', 'AS'] allAboutStringsPart2('Computer') → [8, 'C', 'r', 'pu'] allAboutStringsPart2('Science') → [7, 'S', 'e', 'e'] ...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: 100
Copyright Nick Parlante 2017 - privacy