What are the benefits or cost of doing this:
document.getElementById('asd').myData=123
then document.getElementById('asd').myData; //123
vs
document.getElementById('asd').setAttribute('data-item',123);
document.getElementById('asd').getAttribute('data-item'); //123
Also where is data exactly being stored when i attach it dom element as variable.