Elias scored at 5:21 of the second period on a slap shot from the top of the left circle. Salmela scored from the slot with 5:57 left.
The Devils improved to 3-2-0 in the preseason.
MacDonald made 19 saves for the Islanders (2-2-0) in their only preseason game at home.