Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ex:java script


var person = {
    fullName: function(city, country) {
        return this.firstName + " " + this.lastName  + "," + city + "," + country;
    }
}
var person1 = {
    firstName:"John",
    lastName: "Doe",
}
 person.fullName.call(person1, "Oslo", "Norway"); 

Source by msiter.ru #
 
PREVIOUS NEXT
Tagged: #script
ADD COMMENT
Topic
Name
6+1 =