1. What is the syntax of ForEach loop? which loop would you use to parse a JSON and why?

Below is the syntax of for each loop:

angular.ForEach(students,function(value,key)
{
//some code
}
To parse JSON, we can use any loop, but I would use for each loop because it will minimize my code by eliminating the need to store the length of a JSON in a variable.