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


Groups > comp.lang.javascript > #18010

Re: Global variable is deletable?

Newsgroups comp.lang.javascript
Date 2013-01-07 13:25 -0800
References <95a66842-702a-416d-9575-e47c82e6667e@googlegroups.com>
Message-ID <5d9d193f-fb91-43bd-a82d-0528f3ccdd3e@googlegroups.com> (permalink)
Subject Re: Global variable is deletable?
From dann90038@gmail.com

Show all headers | View raw


-> Thomas Li

I have JS Definitive Guide 5th edition, on chapter 4.2 as you read on the last paragraph of that section:
-----------------------------
Variables declared with var are permanent: attempting to delete them with the delete operator causes an error. (The delete operator is introduced in Chapter 5.)
-----------------------------

I gather you misunderstood the statement.  The paragraph refers to the limits the 'delete' operator capability, as you could see at -> http://www.webdevout.net/test?016&raw

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


Thread

Global variable is deletable? Thomas Li <cooooooder@gmail.com> - 2013-01-07 01:21 -0800
  Re: Global variable is deletable? Stefan Weiss <krewecherl@gmail.com> - 2013-01-07 11:24 +0100
    Re: Global variable is deletable? JJ <jaejunks@nah.meh> - 2013-01-07 15:36 +0000
      Re: Global variable is deletable? Scott Sauyet <scott.sauyet@gmail.com> - 2013-01-07 07:50 -0800
    Re: Global variable is deletable? Thomas Li <cooooooder@gmail.com> - 2013-01-07 22:08 -0800
  Re: Global variable is deletable? dann90038@gmail.com - 2013-01-07 13:25 -0800
    Re: Global variable is deletable? Thomas Li <cooooooder@gmail.com> - 2013-01-07 21:48 -0800

csiph-web