Tuesday, August 30, 2022

 One moment I have to close the page I put inside the function the function that I already designed put(text) to see the function Person execute. 


        function Person() {
            this.age =0;
            setInterval(()=>{
                this.age++;
                put(this.age); // this proplerly refers to the person object
            }, 1000);
        }
        const p = new Person();

Rute Bezerra de Menezes Gondim

No comments:

Post a Comment