In below code I can access wrapper
like this: tutorial.screen1.wrapper
var tutorial = {
screen1: {
text: '<div class="text">Click this to continue</div>',
wrapper: '<div class="tutorial tutorial-screen-1">' + this.text + '</div>'
}
Because this.text
cannot be accessed, tutorial.screen1.wrapper
throws error.
How to make this this.text
work with in the object?