Question: 1 ) Write a JavaScript function called fun having a number as its pa UT 1 5 rameter, called n . Your function should

"1) Write a JavaScript function called fun having a number as its pa UT15 rameter, called n. Your function should return a promise fulfilled with the value of 2*n.
2)Write a JavaScript function called fun which has three objects as its parameters and if all these three objects have at least one property with the same name or one property with the same value the function should return true, otherwise it should return false. For instance, if the objects passed to the function are {a:1,c:2},{a:3,b:5},{d:8, a:3} it should return true or the objects passed are {a:1,c:2},{d:3,b:1},{r=1,k=8} it should also return true. For {a:1,c:2},{a:3,b:5},{d:8, e:3} and {a:1,c:2},{d:3,b:5},{r=1,k=8} it should returns false.
Please add proper comments too."

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!