We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Gaming Array 1
You are viewing a single comment's thread. Return to all comments →
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.