about | help | code help+videos | done | prefs |
Given a string, return a new string made of 3 copies of the first 2 chars of the original string. The string may be any length. If there are fewer than 2 chars, use whatever is there. extraFront("Hello") → "HeHeHe" extraFront("ab") → "ababab" extraFront("H") → "HHH" ...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: 184.0
Copyright Nick Parlante 2017 - privacy