In javascript we have array with static number of objects.
objectArray = [{}, {}, {}];
Can someone please explain to me how can I make this number dynamical?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You don’t have to make it dynamic, it already is. You merely need to add more objects onto the array:
In JavaScript, array lengths need not be declared. They’re always dynamic.
You can modify the individual objects by array key: