Example 1
When I was a kid, my favorite book was Miss Nelson is Missing.
With its twisty tale of spitballs and secret identities, Miss Nelson is Missing is a classic of children's literature. And this sentence? It's a classic example of a declarative sentence.
Example 2
Julie taught her goldfish how to cook.
That's an impressive feat. We still can't get our cat to stop unraveling the entire toilet paper roll just for fun. We can, however, tell you that this statement of fact is a declarative sentence.