I am working on a non-profit project, which tracks information of Incoming calls and outgoing calls. I created that completely in HTML, Javascript.
To store the caller phone number I do created a namespace as follows:
var allCalls={
call1={
phonenumber:'',
},
call2={
phonenumber:'',
},
call3={
phonenumber:'',
}
}
with this architecture it only supports 3 calls at a time. How can I make it dynamic? I mean can I generate these variables dynamically?