var add = [];
add[0].url = data.url;
add[0].photo = data.thumb;
console.log(add);
This’ll be an instant know for most JS people. The code above is failing, anyone able to tell me where I’m going wrong
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.
add[0]doesn’t exist….pushsomething first.or