Intermediate Algorithm Scripting - Wherefore art thou

I can’t understand the meaning of this question at all.

function whatIsInAName(collection, source) {
  const arr = [];
  // Only change code below this line


  // Only change code above this line
  return arr;
}

whatIsInAName([{ first: "Romeo", last: "Montague" }, { first: "Mercutio", last: null }, { first: "Tybalt", last: "Capulet" }], { last: "Capulet" });

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15

Challenge: Intermediate Algorithm Scripting - Wherefore art thou

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.