I am coding with firebase. My problem is that the field is every time called at another number. So in a firestore document I have 6: value, or 23: value, ...
I am trying to get these fields like this:  
 const data = doc.data();
 var number = 7;
 var el_already = data.[number];
        ...  
But it already says, that the data.[el] is an unexpected token. The code brokes. I hope you can help me.
~filip
 
     
    