Skip to content

Instantly share code, notes, and snippets.

@mxriverlynn
Last active September 2, 2015 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mxriverlynn/7590db0d7f903c738fee to your computer and use it in GitHub Desktop.
Save mxriverlynn/7590db0d7f903c738fee to your computer and use it in GitHub Desktop.
code is for coworkers, not compilers
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]);
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