Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #38244
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Re: Web midiAPI get name of sending device |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| References | (6 earlier) <3a927707-c4d3-4c00-936e-f547b61d8355@googlegroups.com> <6ec224ec-ec60-4037-80dd-09fdb9d38f88@googlegroups.com> <8b7ac35b-b27c-4d4b-b8ed-966a92156a48@googlegroups.com> <c5c8bb56-e20d-4af8-9384-64d4d9982fb1@googlegroups.com> <63e004b7-7786-4b69-bb5d-83e2793b8030@googlegroups.com> |
| Date | 2020-03-13 13:27 +0100 |
| Message-ID | <XnsAB7F88E813F25eejj99@194.109.6.166> (permalink) |
<jonas.thornvall@gmail.com> wrote on 13 Mar 2020 in comp.lang.javascript:
> So in your line above data, timeStamp, target are reserved words
> or created vars for holding the "three attributes?
let {data, timeStamp, target} = midiMessageEvent,
is an equivalent of:
let timeStamp = midiMessageEvent.timeStamp;
let data = midiMessageEvent.data;
let target = midiMessageEvent.target;
=====================================
let ascii = {
a: 97,
b: 98,
c: 99
};
let {a, b, c} = ascii;
a // returns: 97
var {c, a, b} = ascii;
// 'var' above required,as:
// let {c, a, b} = ascii;
// would give error: "Identifier 'c' has already been declared"
// {c, a, b} = ascii;
// would give error: "Uncaught SyntaxError: Unexpected token '='"
a // returns: 97
var {c, a, e} = ascii;
e // returns: undefined
let {c: qq, a: ww, b: ee} = ascii;
ww // returns: 97
qq // returns: 99
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-10 00:39 -0700
Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-10 00:41 -0700
Re: Web midiAPI get name of sending device "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-10 15:21 -0700
Re: Web midiAPI get name of sending device "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-10 15:43 -0700
Re: Web midiAPI get name of sending device "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-10 17:15 -0700
Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-11 14:32 -0700
Re: Web midiAPI get name of sending device "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-11 15:52 -0700
Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-12 05:04 -0700
Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-12 05:21 -0700
Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-12 05:30 -0700
Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-12 06:32 -0700
Re: Web midiAPI get name of sending device "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-12 12:16 -0700
Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-12 12:55 -0700
Re: Web midiAPI get name of sending device "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-12 21:11 -0700
Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-13 02:16 -0700
Re: Web midiAPI get name of sending device "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-03-13 13:27 +0100
Re: Web midiAPI get name of sending device "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2020-03-13 13:34 +0100
Re: Web midiAPI get name of sending device "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-13 12:47 -0700
Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-11 03:35 -0700
Re: Web midiAPI get name of sending device Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-03-11 03:44 -0700
Re: Web midiAPI get name of sending device "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-03-11 05:21 -0700
csiph-web