<html>
</body>
<script lnguage = "javascript">
let person = new class {
     constructor(name) {
        this.name = name;
     }
     showName() {
       document.write(this.name);
    }
}("Ali Ahmadi");
person.showName(); // "Ali Ahmadi"
</script>
</body>
</html>