🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.javascript
Article #51201

Re: zasięg zmiennych

#51201
From: TOUDIdel
Date: Thu, 18 Oct 2012 13:30
15 lines
1387 bytes
W dniu 18.10.2012 01:32, BooB pisze:
> function uruchom1(){aw=0;}
> function uruchom2(){aw=0;}
> function uruchom3(){aw=0;}
> function uruchom4(){aw=0;}
> function uruchom5(){aw=0;}
> function uruchom6(){aw=1;}
> function uruchom7(){aw=1;}
> function uruchom8(){aw=1;}
> function uruchom9(){aw=1;}
> function uruchom10(){aw=1;}

Przede wszystkim lepiej zamiast 10 funkcji robiących to samo mieć jedną.
-- 
td
Technical Details
Message-ID: <50800486$0$1317$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <64778673-87ab-433b-bdb6-f7fd308f0de6@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-a-02.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Date: Thu, 18 Oct 2012 15:30:43 +0200
From: TOUDIdel <toudidel@oDWA.pl>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1
MIME-Version: 1.0
Newsgroups: pl.comp.lang.javascript
Subject: Re: zasięg zmiennych
References: <64778673-87ab-433b-bdb6-f7fd308f0de6@googlegroups.com>
In-Reply-To: <64778673-87ab-433b-bdb6-f7fd308f0de6@googlegroups.com>
Lines: 16
Message-ID: <50800486$0$1317$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 195.116.105.250
X-Trace: 1350567046 unt-rea-a-02.news.neostrada.pl 1317 195.116.105.250:61165
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit