title: default value of variable in angularjs
body: <pre><code>var one = 0;
  var two = 0;
  
  $scope.one= $scope.myData[0];
  $scope.two= $scope.myData[1];
  </code></pre>
  
  <p>myData is json file so var one is been set to for example 15 and it work properly. I was surprised that my {{two}} didn't display zero. $scope.myData[1] is not yet exist, but why it doesn't set to 0 as I initialize it to zero previously?</p>