Help me IoT coding

I know nothing at all about programming except for block coding, but I want to do this simple project: (link below)
so what I want to do is, make smth like to this using an esp 8226 module and a buzzer. But I really dont know what I should do… I would like to know how this works, and stuff like that. thanks.