Rattling noise from hood of car. on 2006 Nissan Altima

While driving up hill I'm hearing a rattling noise coming from the hood of the car. There is no engine lights come on. What could it be?

Asked by for the 2006 Nissan Altima
that could be what we call pinging from poss low octane fuel, try a higher grade gas