Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: output values from json array gets undefined error Date: Thu, 22 Jun 2017 00:45:09 +0100 Organization: A noiseless patient Spider Lines: 18 Message-ID: <87vano9a7u.fsf@bsb.me.uk> References: <79e8a7f7-9d55-460e-87bc-9af64681db0a@googlegroups.com> <871sqd9ga6.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="c6cbfa7e99e9704a4c24c0f1539c43d3"; logging-data="6201"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hX7Ip7wSVNOX9mjdlWwJBgEnvCIa1HuQ=" Cancel-Lock: sha1:CVDnWxrJnSKASKxX7PIJtLIjQAo= sha1:5DuNB5+TaRgKQkEByHGaOn1YaIA= X-BSB-Auth: 1.d994125cd1ec0b0f4635.20170622004509BST.87vano9a7u.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:33560 JRough writes: > Thanks, I did take out the first for in using a regular for loop. It > seems like it should work but it still says undefined. I wonder how you got from what I said to the changes you ended up making to the code. I ask simply so that I will know what sort of thing I might say in future to avoid whatever misunderstanding led to your mking the code worse. Maybe part of the problem is that you did not consider exactly where I put the remarks. You seem to quote everything and put a remark at the end, whereas I put my remarks next to the part of the message to which they applied. -- Ben.