Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var myObject = {
- isSad: false,
- sad: function() {
- return this;
- },
- stop: function() {
- this.isSad = false;
- },
- beAwesome: function() {
- return;
- },
- lifeMotto: function() {
- // life motto
- alert("Jestem przed ifem!");
- if(sad() === true) {
- alert("Jestem w ifie!");
- sad().stop();
- beAwesome();
- }
- }
- };
- var sad = function() {
- sad = function() {
- return myObject()
- };
- return true;
- }
- myObject.lifeMotto();
Advertisement
Add Comment
Please, Sign In to add comment