The one without a comma. "I was very frightened while the stranger was knocking on my door.
The sentence with the correct punctuation is option B: "I was very frightened while the stranger was knocking on my door." This sentence effectively conveys the actions without unnecessary commas. The other options misuse commas, leading to confusion in the sentence structure.
;