Moniepoint Interview Question

How does JS work under the hood