metodi di javascritp

Solutions on MaxInterview for metodi di javascritp by the best coders in the world

showing results for - "metodi di javascritp"
Soumaya
30 Oct 2019
1var person = {
2  name: ['Bob', 'Smith'],
3  age: 32,
4  gender: 'male',
5  interests: ['music', 'skiing'],
6  bio: function() {
7    alert(this.name[0] + ' ' + this.name[1] + ' is ' + this.age + ' years old. He likes ' + this.interests[0] + ' and ' + this.interests[1] + '.');
8  },
9  greeting: function() {
10    alert('Hi! I\'m ' + this.name[0] + '.');
11  }
12};
13
similar questions
queries leading to this page
metodi di javascritp