In detail can someone please explain to me how cooking eggs makes them safe to eat in connection with enzymes

Thank you

2 answers

enzymes are destroyed by cooking.
I understand that enzymes are killed because of the heat as it is a factor in destroying the enzymes activity but how does this explain why its safe to eat eggs.

I know that eggs may sometimes contain bacteria such as salmonella, so if the eggs are heated does it mean that it will destroy the bacteria thus decreasing the enzymes to start denaturing and allowing it to be safe to eat?