Last active
July 20, 2018 11:18
-
-
Save dgloriaweb/7a9b30b824dbf05dadedd8f7af673a33 to your computer and use it in GitHub Desktop.
JS Bin// source http://jsbin.com/garamex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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