Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #38504
| From | James Kirk <noneya.invalid@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Map function works but has a "UNEXPECTED TOKEN" error how to fix it? |
| Date | 2020-07-12 14:04 -0400 |
| Organization | Time Travel Tracing |
| Message-ID | <20200712140429.598876a6@james.kirk.invalid> (permalink) |
| References | <361f78f8-7ff6-4a2c-a3a6-6e4211cdc9d8o@googlegroups.com> <vgruqw56pdxz$.r9nk01kx833s.dlg@40tude.net> <fe581a0e-b2ec-492b-8035-3910ec7856b6o@googlegroups.com> |
In Message: <fe581a0e-b2ec-492b-8035-3910ec7856b6o@googlegroups.com>
JRough <janis.rough@gmail.com> wrote:
> Saturday, July 11, 2020 at 8:40:32 PM UTC-7, JJ wrote:
>> On Sat, 11 Jul 2020 18:26:39 -0700 (PDT), JRoughline wrote:
[snip]
>>> users.map((user ) => ({ user.gender ==="F" ? user:''})
opening ↑
>> Unwanted extra parenthesis. Read the code more closely.
> I took off parenthesis on last line but it still has error : error
> unknown: Unexpected token, expected "," (9:0) starting on a new line
> after last line of code?
[snip]
> users.map((user ) => ( user.gender ==="F" ? user: '')
opening ↑ no closing ↑
users.map((user ) => ( user.gender ==="F" ? user: ''))
[snip]
mismatched/missing parentheses.
No closing parentheses for map.
--
James Kirk
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Map function works but has a "UNEXPECTED TOKEN" error how to fix it? JRough <janis.rough@gmail.com> - 2020-07-11 18:26 -0700
Re: Map function works but has a "UNEXPECTED TOKEN" error how to fix it? JJ <jj4public@vfemail.net> - 2020-07-12 10:40 +0700
Re: Map function works but has a "UNEXPECTED TOKEN" error how to fix it? JRough <janis.rough@gmail.com> - 2020-07-12 10:46 -0700
Re: Map function works but has a "UNEXPECTED TOKEN" error how to fix it? James Kirk <noneya.invalid@gmail.com> - 2020-07-12 14:04 -0400
Re: Map function works but has a "UNEXPECTED TOKEN" error how to fix it? JRough <janis.rough@gmail.com> - 2020-07-12 11:17 -0700
Re: Map function works but has a "UNEXPECTED TOKEN" error how to fix it? JRough <janis.rough@gmail.com> - 2020-07-12 11:14 -0700
Re: Map function works but has a "UNEXPECTED TOKEN" error how to fix it? luserdroog <luser.droog@gmail.com> - 2020-07-11 22:41 -0700
Re: Map function works but has a "UNEXPECTED TOKEN" error how to fix it? JRough <janis.rough@gmail.com> - 2020-07-12 11:17 -0700
csiph-web