VIERA, Fla. -- J.J. Davis' solo home run in the bottom of the 11th inning helped the Nationals defeat the Braves, 4-3, in front of 7,645 fans at Space Coast Stadium on Wednesday afternoon.

The right-handed-hitting Davis took Matt Childers' 2-0 pitch and knocked the ball over the left-field wall to end the game.

Right-hander Livan Hernandez started for the Nationals. He pitched eight innings and gave up one run on six hits, striking out six and walking none. Hernandez also helped himself with the bat by driving in two runs.

The run off Hernandez was scored in the top of the fourth when Raul Mondesi hit an opposite-field homer over the wall in right.

The Nationals tied the game at 1 off lefty Horacio Ramirez in the bottom of the fifth inning, when Hernandez squeezed home Ryan Church with a sacrifice bunt.

Ramirez pitched six innings and allowed one run on five hits.

The Nationals scored the go-ahead run off right-hander Adam Bernero in the seventh inning when Hernandez doubled down the left-field line to score Gary Bennett.

Davis drove in an insurance run with an RBI groundout off right-hander Roman Colon in the eighth.

But the Braves came back in the ninth inning to tie the game at 3 off left-hander Joe Horgan. With the bases loaded and one strike away from victory, infielder Pete Orr drove in two runs with a single to left field.

The Nationals snapped a six-game losing streak and improved their record to 11-13-1, while the Braves fell to 12-13-1.

The game marked the fifth sellout for Washington this spring.