Moniepoint interview question

How does JS work under the hood