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


Groups > comp.lang.javascript > #18160

Re: Why is this not working

Path csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="UTF-8"
Message-ID <2034240.CDkVJ4E7OL@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <usenet@PointedEars.de>
Organization PointedEars Software (PES)
Date Sun, 20 Jan 2013 06:45:08 +0100
User-Agent KNode/4.4.11
Content-Transfer-Encoding 8Bit
Subject Re: Why is this not working
Newsgroups comp.lang.javascript
References <kdei12$7eg$1@dont-email.me> <17qmf898pvv7167pkqt4nvrchg0ojfso31@4ax.com>
Followup-To comp.lang.javascript
MIME-Version 1.0
Lines 36
NNTP-Posting-Date 20 Jan 2013 06:45:08 CET
NNTP-Posting-Host c6f666c0.newsspool4.arcor-online.net
X-Trace DXC=h]gUneYSdl9NTD<CL>55K=4IUK<Cl32<14Fo<]lROoR18kF<OcfhCO;7EWL1O4@eW;DZm8W4\YJN<b@mF9jNikd53>YBYU3JEo=UE5K:`1IHF>
X-Complaints-To usenet-abuse@arcor.de
Xref csiph.com comp.lang.javascript:18160

Followups directed to: comp.lang.javascript

Show key headers only | View raw


Jeff North wrote:

"Tony Johansson" wrote.
>>| for (int i = 0; i< 10; i++)

Will you *please* fix your quotation prefix?

>         ---  change int to var. You can omit it altogether in this
> instance

Wrong.  Not using “var” would make “i” a property of the Global Object at 
best.  In the worst case it causes a runtime error.

>>| document.getElementById("demo").innerHTML=myFunction(4,3);
>>| </script>
>>| 
>>| </body>
>>| </html>
> 
> The 'int' declaration is causing a syntax error and therefore the rest
> of the code is not being executed.

Because ”int” is not a keyword (at most it is a future reserved word), there 
is no declaration, just a syntax error.

> Depending upon what browser that you are using, you can press the F12
> key to bring up the developer toolbar. Have a look in the area labeled
> console. This is where any javascript errors will be displayed.

There is no “javascript” either.

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

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


Thread

Why is this not working "Tony Johansson" <johansson.andersson@telia.com> - 2013-01-19 17:35 +0100
  Re: Why is this not working Tim Streater <timstreater@greenbee.net> - 2013-01-19 16:52 +0000
    Re: Why is this not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-19 18:45 +0100
  Re: Why is this not working Martin Leese <please@see.Web.for.e-mail.INVALID> - 2013-01-19 10:17 -0700
  Re: Why is this not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-19 18:26 +0100
    Re: Why is this not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-19 18:50 +0100
  Re: Why is this not working Richard Yates <richard@yatesguitar.com> - 2013-01-19 11:11 -0800
    Re: Why is this not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-19 21:17 +0100
      Re: Why is this not working Richard Yates <richard@yatesguitar.com> - 2013-01-19 14:30 -0800
        Re: Why is this not working Stefan Weiss <krewecherl@gmail.com> - 2013-01-20 02:52 +0100
          Re: Why is this not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-20 03:08 +0100
            Re: Why is this not working Stefan Weiss <krewecherl@gmail.com> - 2013-01-20 04:32 +0100
              Re: Why is this not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-20 04:46 +0100
  Re: Why is this not working Danny <dann90038@gmail.com> - 2013-01-19 12:42 -0800
    Re: Why is this not working "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-19 22:53 +0100
  Re: Why is this not working Jeff North <jnorthau@yahoo.com.au> - 2013-01-20 15:13 +1100
    Re: Why is this not working Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-20 06:45 +0100
  Re: Why is this not working Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-01-20 18:20 +0000

csiph-web