// <div data-jsonObj='{someJsonObjectInStringFormate}'> </div>
//<button id="btn"> </button>
function getData(allData){
console.log("allData = ",allData);
const newJsonObj = JSON.parse(allData.getAttribute('data-jsonObj'));
console.log("newJsonObj = ",newJsonObj);
console.log('newJsonObj.id = ',newJsonObj.id);
const varA = newJsonObj.id;
console.log('varA => ',varA);
document.querySelector("#btn").addEventListener('click',function(){
console.log('varA ==>---(changes on the second time to the original value)- ', varA);