Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="New Keyword 1" />
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
//The new keyword create an instance of a user-defined object.
function Person(name, age, sex) {
  this.name = name;
  this.age = age;
  this.sex = sex;
}
var person1 = new Person("Deepak", 24, "Male");
console.log(person1.name);
console.log(person1.age);
console.log(person1.sex);
Output 300px

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

Dismiss x
public
Bin info
deepaksisodiyapro
0viewers