Guy's i am bit confused about the following code, in bellow code has two function then which will execute first Function1() or Function2 () ?

```
$(document).ready(function() {
  // some code here for function1()
});
$(document).ready(function() {
  // other code here for function2()
});

```