Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #40993
| From | ram@zedat.fu-berlin.de (Stefan Ram) |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: JSLint: "Wrap a ternary expression in parens, ..." |
| Date | 2022-07-16 12:19 +0000 |
| Organization | Stefan Ram |
| Message-ID | <formatting-20220716131733@ram.dialup.fu-berlin.de> (permalink) |
| References | <tapv73$1pkf$1@gioia.aioe.org> <ff42c0ad-120d-4a19-9a04-e4b47f2b0a92n@googlegroups.com> <tasbct$11ej$1@gioia.aioe.org> <formatting-20220715193854@ram.dialup.fu-berlin.de> |
ram@zedat.fu-berlin.de (Stefan Ram) writes:
>orb =
>orb0Btn.checked? 0:
>orb5Btn.checked? 5:
>orb10Btn.checked? 10:
>orb15Btn.checked? 15:
> 20;
Or,
orb =
orb0Btn. checked? 0:
orb5Btn. checked? 5:
orb10Btn.checked? 10:
orb15Btn.checked? 15:
20;
. Now, imagine that someone does not know all details of the
ternary operator well, but has a basic idea of it. In which
way could he be mislead by this?
Back to comp.lang.javascript | Previous | Next | Find similar | Unroll thread
csiph-web