Arrays: Left Rotation

  • + 0 comments

    .join(' ') goes one parentheses out hehe

    console.log(a.concat(a.splice(0,k)).join(' '));