I didn't understand, why don't work my code?

Tell us what’s happening:

Your code so far


function convertHTML(str) {
  
  var obj={
      '&':'&​amp;',
      '<':'&​lt;',
      '>':'&​gt;',
      '"':'&​quot;',
      '\'':"&​apos;"
      };

  return str.split('').map((item) => obj[item] || item).join('');
}

console.log(convertHTML('Stuff in "quotation marks"'));

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.125 Amigo/61.0.3163.125 MRCHROME SOC Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/intermediate-algorithm-scripting/convert-html-entities

issues you can have is that you copied and pasted the html elements, there are hidden characters in there that if present don’t let you pass
can’t debug right now, but try to type the html elements

I bring to you this respond from other camper :
Your code contains hidden characters. Paste it here: https://stephengrider.github.io/JSPlaygrounds/

Then remove the dots that follow the & characters and repaste into FCC.

ok. Thank you very much