##Hello World My code: here
-
Responder #1 (here) - This responder took largely the same approach as me but used the
if
/else
approach rather than reassigninginput
to equal either the given input or World. In this case I feel that I prefer my approach. -
Responder #2 (here) - Responder 2 took a similar approach to Responder 1, but they simply used an
if
statement with an impliedelse
. I'm not sure if I prefer this over the traditionalif
/else
approach. Again, I prefer my approach. -
Responder #3 (here) - I really like this implementation. I'm not sure if the conditional, or ternary, operator is more clear, but I like the approach.
-
Responder #4 (here) - Again, I really like this approach. I find it clean and easy to read. Also, I like how they are utilizing ES6. This is my favorite implementation so far.
-
Responder #5 (here) - This approach is similar to the solution of Responder 1 and Responder 2. Not much to add.
##Leap My code: here
-
Responder #1 (here) - The logic of this person's solution is not that different than mine, but I actually like how they divided into multiple
if
statements. I find it very clear and concise. -
Responder #2 (here) - I find this person's response clear and it is very similar to Responder 1's solution.
-
Responder #3 (here) - I think it is best to avoid nested
if
statements if possible. -
Responder #4 (here) - It looks like this person took the same approach as I did. I actually prefer Responder 1's implementation the best so far given how easy it is to read.
-
Responder #5 (here) - I like how this person made an attempt to make their code easier to read by using variables.
##Hamming My code: here
-
Responder #1 (here) - It looks like this person took a similar approach, except I used
charAt
. Different, but the logic is the same. -
Responder #2 (here) - This approach has similar logic, but it uses nest
if
statements. Again, I think these should be avoided if possible. -
Responder #3 (here) - I like how this solution uses
forEach
rather than afor
loop, but I find it a bit difficult to read. I think afor
loop is easier to follow for this problem. -
Responder #4 (here) - This person's response if very close to Responder 1's solution. Not much to add.
-
Responder #5 (here) - This is definitely a unique solution. I like how they were able to squeeze in both the conditional, or ternary, operator and forEach with split. I'm not sure if this is the cleanest approach, but I find it interesting.