Wrong code gets approved

(hopefully the image loads instead of a link)
This is the javascript language
The supposed code is

console.log(Math.floor(Math.random() * 100))

But for some reason what I made, which gave an error, was correct concluding to Code Academy. Buw how, or why, did my code get approved?

  1. That’s JavaScript, not Python
  2. You only need to console.log() the result of Math.floor(43.8), nothing more.
  3. Math.floor().ceil() isn’t a defined function. This is because it’s calling int.ceil() - which doesn’t exist - rather than Math.ceil().