-
…in reply to @undefined
@SamSamskies ccedacero This is a nice coding challenge! I’m not sure about js, but in python I would do something like: def upperToFront(s): front = "" back = "" for ch in s: if ch.isupper(): front += ch else: back += ch return front+back s = 'd{e}fA1B2C3' print ( upperToFront(s) )