Last active
November 30, 2018 15:04
-
-
Save tasaquino/0e5fd0d64c8b4a28369e266b372879ae to your computer and use it in GitHub Desktop.
Scoping Functions - apply example
This file contains 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
person.apply { | |
this.profession = "Iron Man" | |
this.nickname = "Tony" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment