JavaScript interview coding question.Find average in nested array of objects.

Published --