Check the right code

Hello there, I was wondering how does freeCodeCamp check if you typed the right code? I would like create something similar, is it possible to do it only with JS or you also need to work on the server?

FCC is open source - you can actually go and see the code for yourself. But there are many testing suites out there, like Jest, Mocha, etc.