I got confused when ever there is a call back function.
for example-
<div ng-app="myApp" ng-controller="myCtrl">
Name: <input type="text" ng-model="name"><br>
</div>
<script>
angular.module('myApp', []).controller('myCtrl', function($scope) {
$scope.name= "John";
});
</script>
I want to know in <script>
tag which function will execute first,& also want to make sure is this function return any value to some other function which is used as parameter?