Or is it just commercial aircraft? I was watching an episode of Scorpion where an "F-120 Firehawk" crashed and they looked at its black box. So, do normal, non-imaginary fighters have them?
Yes, most military aircraft, including fighter aircraft, are equipped with a "black box" called flight data recorder (FDR) / crash survivable memory unit (CSMU) / integrated monitoring and recording system (IMRS) / deployable flight incident recorder set (DFIRS).
Do fighters have black boxes?
Almost all the 4th gen and 5th gen fighter jets have a flight recorder a.k.a Black Box.
I was watching an episode of where an "F-120 Firehawk" crashed and they looked at its black box.
In case of a crash both the Black Box and the Ejection Chip will have to be examined to ascertain the cause of the crash.
Data is stored in stacked semiconductor dynamic RAM memory boards.The manufacturers supply the software and hardware needed to read and analyze the data