Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

metodi di javascritp

var person = {
  name: ['Bob', 'Smith'],
  age: 32,
  gender: 'male',
  interests: ['music', 'skiing'],
  bio: function() {
    alert(this.name[0] + ' ' + this.name[1] + ' is ' + this.age + ' years old. He likes ' + this.interests[0] + ' and ' + this.interests[1] + '.');
  },
  greeting: function() {
    alert('Hi! I'm ' + this.name[0] + '.');
  }
};
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #metodi #di #javascritp
ADD COMMENT
Topic
Name
5+9 =