My solution using for loops
EloquentJS solution

With a basic if statement, there's no need to actually use the === or
!==