Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ES2015
- var videogame = {
- name: "Uncharted",
- version: "4",
- getGame(){
- return this.name + " " + this.version;
- }
- };
- videogame.getGame(); //"Uncharted 4"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement