Migrate the code from codeacademy ide to vs code ide

Hi everyone,
I’m new to codeacademy. I’ve done the "Race Day " project in codeacademy IDE the I copy and paste in VS code.
But the result are not similar. In codeacademy it works but in vs code it is not working. I use node file.js and it give me wrong out.
Can someone help me? Why it give me the wrong output?