Created
March 27, 2016 08:36
-
-
Save gauravbansal74/c842678133aa2028d146 to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
<title>Sample Page</title> | |
<script src="js/main.js"></script> | |
<script src="js/utill.js"></script> | |
</head> | |
<body> | |
<p>Look at source or inspect the DOM to see how it works.</p> | |
</body> | |
</html> |
This file contains hidden or 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
var main = utill; | |
main.getAlert(); |
This file contains hidden or 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
var utill = {}; | |
utill.getAlert = function(){ | |
alert("i am from utill"); | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment