How can I hide the text of an html element in the browser console?

  • 0
    I'm making a field-wonders game, but the letter can be spied on in the browser console.
    How to hide the text of an html element in the browser console?
    Any method will do!
    JavaScript Joshua Ellison, Jul 30, 2020

  • 2 Answers
  • 0
    I would simply not form responses in HTML. Let JS do it and check the symbols for itself. If there is a match, then the character is added to HTML
    Anonymous

  • 0
    If you just hide it in html, then, as suggested above, you can store the answer in zhs.

    But this will not solve the global problem, the jsa code can also be viewed. At the front, you won't be able to hide anything, the client sees everything, the data must be stored on the server.

    However, life can be complicated. For example, encrypt responses. It is clear that the key will also be freely available, but to get the answer you will have to work hard, especially if you split the key into several lines and minify the code.
    Arya Clayton

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!