Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #29214
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2016-01-10 09:55 -0800 |
| References | <68d49145-aeb3-476b-9aae-2731fb18845b@googlegroups.com> <1bae5e3d-890b-4a2f-8cb0-e129a805e312@googlegroups.com> |
| Message-ID | <3351aba0-ffb3-4b46-b61d-a78bb198228d@googlegroups.com> (permalink) |
| Subject | Re: Local and global objects / variables in javascript |
| From | jonas.thornvall@gmail.com |
Den söndag 10 januari 2016 kl. 17:30:56 UTC+1 skrev Michael Haufe (TNO): > On Sunday, January 10, 2016 at 2:54:05 AM UTC-6, jonas.t...@gmail.com wrote: > > I've been fiddling with javascript for quite a while but i still do not grasp the correct way to make an array local in javascript slice() can't possibly be the correct way? > > use var, let, or const to declare variables, depending on the version of ECMAScript you're using But is the slice the correct way to do local copies of the array?
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Local and global objects / variables in javascript jonas.thornvall@gmail.com - 2016-01-10 00:53 -0800
Re: Local and global objects / variables in javascript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-01-10 08:30 -0800
Re: Local and global objects / variables in javascript jonas.thornvall@gmail.com - 2016-01-10 09:55 -0800
Re: Local and global objects / variables in javascript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-01-10 10:54 -0800
Re: Local and global objects / variables in javascript jonas.thornvall@gmail.com - 2016-01-10 12:32 -0800
Re: Local and global objects / variables in javascript "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-01-10 14:57 -0800
csiph-web