Bence Bíró opened the score on the 16th minute but a great goal by Myles Beerman who rounded a number of players before beating the Hungarian goalkeeper with a fine shot which gave him no chance.
However one minute in added time, referee Bence Lenzsé notched the winner to hand Slovakia the three points.
MALTA Jake Galea, Jean Borg, Kurt Zammit, Karl Micallef, Dunstan Vella, Matthew Guillaumier, Joseph Mbong, Jake Grech, Kyrian Nwoko (90′ Aidan Friggieri), Jurgen Degabriele (86′ Zach Scerri, Myles Beerman.
HUNGARY Patrik Demjén, Bence Tóth, Bence Lenzsér, Ákos Kecskés, Máté Vida, Gábor Makrai (64′ Norbert Kundrak), Attila Szalai (78′ Csaba Spandler), Kornél Csernik (82′ Kornél Csernik).
Juri Frischer (EST)