0
How to hide data in javascript
he is a big problem of JavaScript can you sole this problem ?
7 Respostas
+ 14
if the data you are refering to are html elements, you can do:
var el = document.getElementById('element');
el.style.display = 'none';
Here 'element' is the id of the element you want to hide.
+ 9
If you mean by creating private variables.
You can read on closures. It is a way through which data-hiding can be achieved.
+ 4
Please write your question clearly so that everyone can understand what the problem is.
+ 2
You mean [native code]?
0
you don't have to keep the is code in the html. you can include it using <script src="yourcode.js"> so users won't see your code. if it's what you want to do.