There is a "ellipsis" (HTML code & hellip). Tried through fromCharCode (2026), but without success

  • alert('…') - perfectly displays. What is the problem? - Darth
  • @Darth "..." is already like three characters, and there is a three-dot as just one character, here is its HTML code & hellip; - Nick
  • Try copying one point separately from my comment ... - Darth
  • @Darth is also an option, but how to display the ellipsis knowing the HTML code of this character or do you need to know its encoding in Unicode and then output it? - Nick

1 answer 1

You have incorrectly viewed the character code.

 alert( '…'.charCodeAt(0) // 8230 +' '+ String.fromCharCode(8230) //"…" ) 

  • emae, so I took Unicode, instead of the HTML code, I messed up everything, very grateful! - Nick