Page 1 of 1

Output the array

Posted: Wed Aug 26, 2015 10:18 am
by Johnny7459624

Hi

I have this

Image

How do i "return" that console.log to show in variable so that i can return the results?


Output the array

Posted: Wed Aug 26, 2015 12:38 pm
by Illya Stepanov

Hi Johnny -

What result you are getting now inside the browser console? Could you please show.


Output the array

Posted: Wed Aug 26, 2015 12:43 pm
by Johnny7459624

The console show the array so that is working. So i dont want to show it in consle i want to show it in variable...

I opened 2nd ticket because i get no response on my other ticket. Im just looking for some help please


Output the array

Posted: Wed Aug 26, 2015 1:04 pm
by Illya Stepanov

What variable and where? You need to declare it and return its value, so far I don't see it in your code.


Output the array

Posted: Wed Aug 26, 2015 1:14 pm
by Johnny7459624

Ok let me explain. I did not get reaction on this ticket https://getsatisfaction.com/apperyio/...

Then I try to do it and got stuck at the following.

My Local storage array's name is "stuffList". It is based on the todo tutorial.
If you see my old ticket i gave allot of screenshots to help explain the problem but what i try to achieve is to send a mail via sendgrid that is showing the local storage array "stuffList" in the body.

Again see my screenshots https://getsatisfaction.com/apperyio/...

Now im at this point where i almost got it i think. i saw example in the forums about showing array in the console.
Image

Now Im trying to put the console value into a variable that i can use in the sendgrid body.

Again see my images on https://getsatisfaction.com/apperyio/...


Output the array

Posted: Thu Aug 27, 2015 11:45 am
by Johnny7459624

I solved it.