-
-
Save mxriverlynn/7590db0d7f903c738fee to your computer and use it in GitHub Desktop.
code is for coworkers, not compilers
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
var _0x167d=["\x61","\x62","\x66\x20\x3A\x20","\x67"];function C(_0x5ed1x2){var _0x5ed1x3=0;this[_0x167d[0]]=function(_0x5ed1x4){_0x5ed1x3++;alert(_0x5ed1x2+_0x5ed1x4);};this[_0x167d[1]]=function(){return _0x5ed1x3};}var obj= new C(_0x167d[2]);obj[_0x167d[0]](_0x167d[3]); |
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 NewObject(prefix) | |
{ | |
var count=0; | |
this.SayHello=function(msg) | |
{ | |
count++; | |
alert(prefix+msg); | |
} | |
this.GetCount=function() | |
{ | |
return count; | |
} | |
} | |
var obj=new NewObject("Message : "); | |
obj.SayHello("You are welcome."); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment