JavaScript Object Literal – how to replace `this` keyword for another thing
Is there any way to avoid the constant use of the this keyword to access the properties and methods of the current object? I tried something like in Example 2, but it doesn't work at all. Example 1: <script> var…