Obviously, it would be smarter for the dragons to stay out of range, which makes them a bad example, perhaps. They might be able to just repeatedly strafe the orcs. With a flying speed of 80 feet, however, the orcs probably could still attack with their javelins (range 30/120) at disadvantage...