what is the function of an electromagnet in an electric doorbell?\no it acts as a switch to open the…

what is the function of an electromagnet in an electric doorbell?\no it acts as a switch to open the circuit.\no it acts as a switch to close the circuit.\no it repels a metal striker, which then pulls away from the bell.\no it attracts a metal striker, which then hits the bell.
Answer
Brief Explanations:
In an electric door - bell, when current flows through the electromagnet, it becomes magnetized and attracts the metal striker. The striker then hits the bell to produce sound. It doesn't act as a circuit - opening or circuit - closing switch, and it doesn't repel the striker.
Answer:
It attracts a metal striker, which then hits the bell.