Personification: "The train swept with majestic speed over the beautiful valley of the Sacramento" (Chapter 21). In this example, the literary device used is personification, as the train is given human qualities (in this case, "majestic speed"). This device helps to convey the power and impressive speed of the train as it travels through the landscape, adding to the sense of excitement and adventure in the story.
Foreshadowing: "In a few moments the young woman had passed, and D'Artagnan, looking around him for Athos, Porthos, and Aramis, saw the trio in the midst of a group of the English auxiliaries, fighting with great animation" (Chapter 24). In this example, the literary device used is foreshadowing, as the description of the three musketeers fighting suggests that there will be action and conflict to come. This device helps to build tension and anticipation for the reader, keeping them engaged in the story.
Irony: "But it is one of the lessons of our time to not be alarmed by famous names, to let glory alone, and to believe that even the greatest characters may live by their defects as well as by their virtues" (Chapter 25). In this example, the literary device used is irony, as the statement that we should not be "alarmed by famous names" is followed by a discussion of how the famous detective Fix has made a mistake in his pursuit of Phileas Fogg. This device helps to highlight the fallibility of even the most well-known and respected figures, and adds a note of skepticism to the story.
I hope this helps! Let me know if you have any further questions.
IG:whis.sama_ent