Javascript Question Mark Operator Before Dotloop