0
please solve this
Given three objects father , mother , and child , write a JS program to concatenate all the objects into the family object using the spread operator. Input The first line of input contains an object father The second line of input contains an object mother The third line of input contains an object child Output The output should be a single line string with the appropriate statement as shown in sample outputs Constraints Keys of the objects should be given in quotes input: {'surname' : 'Jones', 'city': 'Los Angeles'} {'dish': 'puddings'} {'pet': 'Peter'} output: Mr and Mrs Jones went to a picnic in Los Angeles with a boy and a pet Peter. Mrs Jones made a special dish "puddings"
2 odpowiedzi
+ 8
sai ganesh , please don't ask the community to do this job for you. to get ready codes does not really help you to progress in learning and it does not develop your problem solving ability. as you have joined sololearn just some hours ago, it looks like this is a homework or a challenge like this.
▪︎before we are going to help you, please present your attempt here. if you haven't done a try by yourself so far, please do so.
▪︎create your code in playground, run it, try to fix bugs and then post the link to it here.
thanks!
+ 7
Please show us your attempt sir.