white to play

This is garbage. Black should never play ...Ng4
I am assuming this came from 1.e4 e5 2.Nf3 Nc6 3.Bc4 Nf6 4.d4 exd4 5.e5 and then 5...Ng4??
Everyone knows that Black should play 5...d5!
Here, White is better after 6.O-O

Bxf7 is a bad move. If we continue a bit, we could see black is fine :
The correct move is 6.0-0, though Qe2 was given as a main line but nowadays black is considered ok after 6.Qe2 Qe7 7.Bf4 f6!
However, black's position is playable, and Ng4 is a reliable choice, not at all garbage.
Ng4 is better than its reputation.