Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #29212

Re: Local and global objects / variables in javascript

Newsgroups comp.lang.javascript
Date 2016-01-10 08:30 -0800
References <68d49145-aeb3-476b-9aae-2731fb18845b@googlegroups.com>
Message-ID <1bae5e3d-890b-4a2f-8cb0-e129a805e312@googlegroups.com> (permalink)
Subject Re: Local and global objects / variables in javascript
From "Michael Haufe (TNO)" <tno@thenewobjective.com>

Show all headers | View raw


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

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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