Gaming Array 1

  • + 1 comment

    Sorry to respond so late but the first time I read your explination I was embarassed to say I was still lost. I'm gonig through my old list of solved Hacker Rank problems now for an interview tomorrow and this whole thing clicks so much more at this point in my JS journey. (≈6 months of coding JS at this point).

    Really slick how you're using a modulus operator on your outer terinary operator to resolve to 1 or 0 as a boolean for Bob or Andy. I know these examples aren't really indicitive of production code structures, but I want to ace my technical interviews as best I can so it's nice to be able to see the machanisms at play in these lovely conscise reduced solutions in addition to just focusing on the problem solving skills AS they would be needed in an interview setting.