Last active
June 3, 2019 01:48
-
-
Save codeBelt/c620071405d1ec8b39eb9a37d60b8fba to your computer and use it in GitHub Desktop.
For Medium Article: https://medium.com/swlh/protect-your-javascript-applications-from-api-data-401a73c7c80b
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
const person = new PersonModel({firstName: 'Joe', lastName: 'Doe', address: addressData}); | |
console.log(person.fullName); // Joe Doe | |
person.update({firstName: 'John'}); | |
console.log(person.fullName); // John Doe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment