Corrected example of object instantiation in documentation

pull/1037/head
Hemanthh75 3 weeks ago committed by GitHub
parent e067490424
commit df9c3ac006
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -72,7 +72,7 @@ We have created an Person class but it does not have any thing inside.
Instantiation class means creating an object from a class. We need the keyword _new_ and we call the name of the class after the word new. Instantiation class means creating an object from a class. We need the keyword _new_ and we call the name of the class after the word new.
Let us create a dog object from our Person class. Let us create a person object from our Person class.
```js ```js
class Person { class Person {

Loading…
Cancel
Save