Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="js shadow test" />
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.2/angular.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
var parentScope = { property:''};
    var childScope =  Object.create(parentScope) ; 
    console.log('************************* Set A to parentScope.property' );
    parentScope.property = 'A';
    console.log('parentScope.text='+parentScope.property );
    console.log('childScope.text='+childScope.property );
    console.log('************************* Set B to childScope.property' );
    childScope.property = 'B';
    console.log('parentScope.text='+parentScope.property );
    console.log('childScope.text='+childScope.property );
    console.log('************************* Set X to parentScope.property' );
    parentScope.property = 'X';
    console.log('parentScope.text='+parentScope.property );
    console.log('childScope.text='+childScope.property );
Output 300px

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
jeremykopro
0viewers