Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

array

//combine the name with the age from object javascript function challenges
const customerAndAge = (obj) => {
    let array = [];
    for (let key in obj) {
      array.push(`Customer Name :${key} , Age :${obj[key]}`);
    } return array;
 
};

//if you find this answer is useful ,
//upvote ⇑⇑ , so can the others benefit also . @mohammad alshraideh ( ͡~ ͜ʖ ͡°)
Source by 127.0.0.1 #
 
PREVIOUS NEXT
Tagged: #array
ADD COMMENT
Topic
Name
1+1 =