JavaScript basic: Find the shortest possible string which can create a ...

JavaScript basic: Find the shortest possible string which can create a ...