Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Game() {
- this.name = 'Not probably a game.';
- this.player = new Player(this);
- this.create = function() {
- alert('Show must go on.');
- }
- }
- function Player(game) {
- alert(game.name);
- game.create();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement