Which of the following best describes the author’s use of dialogue in the passage?

A: to provide background information about the characters
B: to reveal the characters’ thoughts and emotions
C: to establish the setting and atmosphere of the story
D: to introduce new conflicts and plot developments

B: to reveal the characters’ thoughts and emotions