Javascript Get Max Value In Array In C