Skip to content

Instantly share code, notes, and snippets.

@lofidewanto
Last active May 16, 2018 22:58
Show Gist options
  • Select an option

  • Save lofidewanto/2c625d0f681918c8d387d7a7572af3ca to your computer and use it in GitHub Desktop.

Select an option

Save lofidewanto/2c625d0f681918c8d387d7a7572af3ca to your computer and use it in GitHub Desktop.
<!-- Apple class -->
<script language="javascript" type="text/javascript">
Apple = function () {
this.x = 40;
this.y = 2;
};
Apple.prototype.sum = function () {
return this.x + this.y;
};
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment