subject

Javascript Question;INSTRUCTIONSModify this function to take in an object as a parameter. The object will represent a person and have a firstName property and a lastName property. Return the person’s full name, separated by a space. Example:getFullName({ firstName: 'Jon', lastName: 'Smith' });// -> 'Jon Smith'This is what I got so far;function getFullName(name1, name2) {let person = {firstName: "John Smith",lastName: "Sarah Smith",};return `${person. firstName}`;return `${person. lastName}`;}***My problem is that it only return John Smith, and not Sarah. Anyone has a suggestion on what I should add? Thank you in advance!

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:00, paigesyring
How does a policy manual an organization? a. it boost productivity. b. it create awareness in employees about the organization’s values. c. it employees achieve targets. d. it safeguards the organization from liabilities.
Answers: 1
image
Computers and Technology, 22.06.2019 23:30, riah133
Creating "smart interfaces" in all sectors of industry, government, and the public arena is one of the fastest growing hct areas. these interfaces model, interpret, and analyze such human characteristics as speech, gesture, and vision. the field of biometrics, in which humans authenticate themselves to machines, is an area of considerable interest to hct practitioners. fingerprint scans are one of the most frequently used biometric options, and this article, biometric student identification: practical solutions for accountability & security in schools, makes a case for the implementation of fingerprint scans in schools. critique the article, and answer the following questions: according to the author, what are the main benefits of adopting fingerprint scans in schools for student identification? according to the author, what are the main drawbacks of adopting fingerprint scans in schools for student identification? do you agree with the author's assessment of the pl
Answers: 2
image
Computers and Technology, 23.06.2019 18:00, fordkenae
Which is a possible benefit of having a good credit history? having a checking account low interest rate on a car loan high interest rate on a credit card offer bankruptcy
Answers: 1
image
Computers and Technology, 24.06.2019 00:30, lovemusic4
Setting up a home network using wireless connections is creating a a. vpn b. lan c. wan d. mini-internet
Answers: 2
You know the right answer?
Javascript Question;INSTRUCTIONSModify this function to take in an object as a parameter. The object...

Questions in other subjects:

Konu
Biology, 14.06.2021 19:40
Konu
Mathematics, 14.06.2021 19:40
Konu
Mathematics, 14.06.2021 19:40
Konu
Business, 14.06.2021 19:40
Konu
Mathematics, 14.06.2021 19:40