Skip to content

Instantly share code, notes, and snippets.

@dgloriaweb
Last active July 20, 2018 11:18
Show Gist options
  • Save dgloriaweb/7a9b30b824dbf05dadedd8f7af673a33 to your computer and use it in GitHub Desktop.
Save dgloriaweb/7a9b30b824dbf05dadedd8f7af673a33 to your computer and use it in GitHub Desktop.
JS Bin// source http://jsbin.com/garamex
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript" src="js53.js">
</body>
</html>
/*function Employee(firstName, lastName)
{
this.firstName= firstName;
this.lastName = lastName;
this.getfullname = function()
{
return this.firstName+" " + this.lastName;
}
}
var employee = new Employee("Pragim","Tech");
*/
var employee=
{
firstName:"Pragim",
lastName:"Tech",
getfullname: function(){
return this.firstName+" "+this.lastName;
}
}
document.write(employee.getfullname());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment