let data={ r6:{ c2:{ value:12 } }, r7:{ c2:{ value:20 } } } for(let i=6;i<20;i++){ let markr = 'C'+i; markr = data.r.c2.value console.log(markr) }