The door shut with a slam/bang.
门砰的一声关上了。
If something bangs, it makes a sudden loud noise, once or several times.
砰然作响 • The engine spat and banged. 引擎发出劈啪声和砰砰巨响。
You can use bang to emphasize expressions that indicate an exact position or an exact time.
正好 • ...bang in the middle of the track. …在路的正中央。
...the sound of doors banging. …
砰砰的关门声。