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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:00
Sam is a data analyst at an advertising firm. he often uses a spreadsheet that contains media ratings details. he would like to filter the spreadsheet data based on different filter criteria. which operators can he use to specify the combination of filter criteria? sam can use the ( blank ) operators to specify a combination of filter criteria.
Answers: 3
question
Computers and Technology, 22.06.2019 21:30
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. andy received a potentially infected email that was advertising products. andy is at risk of which type of security threat? a. spoofing b. sniffing c. spamming d. phishing e. typo-squatting
Answers: 2
question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word “foreshadow” seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
You know the right answer?
Javascript Question;INSTRUCTIONSModify this function to take in an object as a parameter. The object...
Questions
question
Mathematics, 02.10.2019 18:30
question
German, 02.10.2019 18:30
question
Mathematics, 02.10.2019 18:40
question
English, 02.10.2019 18:40
Questions on the website: 13722363