Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
- <script>
- var simpleClass = {
- testAttribute : "test", // atttribute
- testMethod : function() //method
- { return testAttribute; }
- };
- var simpleClassObj = new simpleClass();
- simpleClassObj.testAttriute;
- </script>
Add Comment
Please, Sign In to add comment