Credit Card checker

Hello folks, how you all guys doing?

I am wondering if anyone have donde the Credit Card Checker Project from the JavaScript course:

I would like to know if anyone did it and share it with me, so that I can take a look and learn from it.

Thank you and have a good one!


Hi @idelima

The idea of the projects is that you attempt them, applying the knowledge you’ve gained up to that point in the course and learn by doing.

Having someone else give you a functional solution is a bit of a Blue Peter “Here’s one I made earlier” move.

If you’ve had a go and are stuck with an error you can’t fix or there’s a specific step you’re struggling to implement, we can help with that. :slight_smile:


hello, Im stuck on the second half of the creditcard checker;

const findValidCards = (nestedArray) => {
let invalidCards = ;
let validCards = ;
for(let i = 0; i > nestedArray.length; i++) {
if (validateCred(i) === ‘Invalid Card’) {
return invalidCards;

working from the previous three parts and recycling code

I think that > should be <

1 Like

You are right it took me awhile to figure that I had it wrong