how to decode this text in JavaScript (Hello, u00bfen quu00e9 can I help you?) [closed]

-4

It is coded but I want to replace the letters where the accents and the question mark correspond, what function could I use to do this?

    
asked by Anthony Medina 28.01.2018 в 19:32
source

1 answer

1

The Hola, u00bfen quu00e9 puedo ayudarte? string uses Unicode encoding but is incomplete.

Instead of

  • u00bf must be \u00bf
  • u00e9 must be \u00e9

The following code writes the decoded phrase

document.write('Hola, \u00bfen qu\u00e9 puedo ayudarte?')

Reference

answered by 28.01.2018 / 20:48
source