Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  please click on edit js to see the code
</body>
</html>
 
console.log('init Test');
var globalVar = "global";
function myObject(){
  var test="private";
  
  this.testLog = function(){
    console.log(test + ":" + globalVar);
  }
  return this;
}
var testObject = new myObject();
console.log('start Test');
testObject.testLog();
Output

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

Dismiss x
public
Bin info
simplologiapro
0viewers