This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<script> | |
class Main { | |
constructor () { | |
this.name = "Name in class" | |
this.person = { | |
name: "Alisher", | |
getName: function () { | |
return this.name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<script> | |
function ourApp(){ | |
const name = 'First Person'; | |
const someOne={ | |
name:'SomeOne', | |
getName:function(){ | |
return this.name; | |
} |