Repeat a string: why does challenge guide suggest algorithm is advanced?

Hi,

I created my own Repeat a String function before I stumbled on the Algorithm Challenge Guide and I was wondering why the posted advanced algorithm is considered… well… advanced?

Here’s a jsperf.com link to the algorithms in the challenge

I’m assuming it is not just performance that makes an algorithm advanced, so I would like to hear people chime in on what makes the solution posted advanced.

Nobody taught you ternary operators at that point yet. The other half of it is realizing there’s a standard function already available, so there’s no need for loops.