Open mhaidarhanif opened 6 years ago
const combineFullName = (first, last) => { const full = `${first} ${last}` return { first: first, last: last, full: full } } const result = combineFullName("Haidar", "Hanif") console.log(result); console.log(result.first); console.log(result.last); console.log(result.full);