Created
February 25, 2019 14:49
-
-
Save Violet-Bora-Lee/de6a1c9fbc4116f422753565db8c3bfb to your computer and use it in GitHub Desktop.
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
class ReactDeveloper extends Developer { | |
installReact(){ | |
return 'installing React .. Done.'; | |
} | |
hello(){ | |
return 'Hello World! I am ' + this.name + ' and I am a REACT developer'; | |
} | |
} | |
var nathan = new ReactDeveloper('Nathan'); | |
nathan.hello(); // Hello World! I am Nathan and I am a REACT developer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment