JavaScript Coding Question – 12

  • In JavaScript Objects if we have duplicate property names, only the last definition will be retained. So in this case data.name will be "React".
  • .at(-2) will give the second character from the last which is ‘c’ in this case.

Leave a comment