Answer the question
In order to leave comments, you need to log in
How to disable access to js variables from console?
Hello.
Perhaps this is superfluous, but still.
How to disable the display of variable values via console.log(%var%)?
My site consists entirely of json responses from the php server, and through the developer console you can see what is in the variables.
Is there any way to protect variables from being viewed through the console?
Answer the question
In order to leave comments, you need to log in
(function(){
"use strict";
//приватная переменная
var a = 100500;
})()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question