Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #40996
| From | emf <emfril@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: JSLint: "Wrap a ternary expression in parens, ..." |
| Date | 2022-07-16 17:46 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <tavbjb$12sf$1@gioia.aioe.org> (permalink) |
| References | <tapv73$1pkf$1@gioia.aioe.org> <ff42c0ad-120d-4a19-9a04-e4b47f2b0a92n@googlegroups.com> <tasbct$11ej$1@gioia.aioe.org> <8fdd197b-5ad1-4d87-8358-40a1d7cb559fn@googlegroups.com> |
On 2022-07-16 11:37, Michael Haufe (TNO) wrote:
> On Friday, July 15, 2022 at 1:24:37 PM UTC-5, emf wrote:
>> [...]
>> The only now warning is:
>>
>> 1. Bad assignment to 'panel'. 89.5
>> panel = document.getElementById("panel");
>>
>> however the program (see sig below in (nataltransits2.js) still
>> does not work...
>> Eustace
>
> ESLint points out a number of issues remaining:
>
> <https://emf.neocities.org/nt/nataltransits2.js>
>
> 11:9 'ephem' is not defined. (no-undef)
>
> 15:16 'ephem' is not defined. (no-undef)
>
> 19:9 'ephem' is not defined. (no-undef)
>
> 20:9 'ephem' is not defined. (no-undef)
>
> 29:9 'reader' is not defined. (no-undef)
>
> 30:16 'reader' is not defined. (no-undef)
>
> 38:5 'reader' is not defined. (no-undef)
>
> 39:5 'reader' is not defined. (no-undef)
>
> 40:5 'reader' is not defined. (no-undef)
>
> 49:16 'getBDay' is not defined. (no-undef)
>
> 81:9 'findTransits' is not defined. (no-undef)
>
> 83:9 'panel' is not defined. (no-undef)
>
> 89:5 'panel' is not defined. (no-undef)
>
> 91:22 'e' is defined but never used. (no-unused-vars)
>
>
> You have to declare a variable before assigning to it.
There was only 1 warning because in the process of JSLinting I
had added imported globals. This was nataltransits2.js, and
there is also a nataltransits.js,
Well, I have to start checking the program from the beginning to
find out where the bug is. Then I may seek the advise of this
newsgroup again.
The thing is that the webpage was working fine before... I'm
thinking of starting to comment out one "use strict" at a time,
to see if at some point the program will start working again...
Thanks to all,
Eustace
--
Natal Transits Calculator
https://emf.neocities.org/nt/nataltransits2.html
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
JSLint: "Wrap a ternary expression in parens, ..." emf <emfril@gmail.com> - 2022-07-14 16:44 -0400
Re: JSLint: "Wrap a ternary expression in parens, ..." "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2022-07-15 08:40 -0700
Re: JSLint: "Wrap a ternary expression in parens, ..." emf <emfril@gmail.com> - 2022-07-15 14:24 -0400
Re: JSLint: "Wrap a ternary expression in parens, ..." "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2022-07-16 08:37 -0700
Re: JSLint: "Wrap a ternary expression in parens, ..." emf <emfril@gmail.com> - 2022-07-16 17:46 -0400
Re: JSLint: "Wrap a ternary expression in parens, ..." emf <emfril@gmail.com> - 2022-07-16 17:27 -0400
Re: JSLint: "Wrap a ternary expression in parens, ..." emf <emfril@gmail.com> - 2022-07-15 14:19 -0400
csiph-web