🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14955

Re: JS beginners help

#14955
From: Dave_Saunders
Date: Mon, 12 Jan 2004 00:17
5 lines
929 bytes
Unlike every other language in the known universe, JavaScript requires you to declare that a variable is local. You do that with var. If you don't use var, then the variable is global.

Most of the time, I just use global variables, but for larger scripts I'm more careful.

Dave
Technical Details
Message-ID: <2ccf45cf.6@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccf45cf.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,613db9f5b5ffc527
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-11 16:37:39 PST
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: JS beginners help
Message-ID: <2ccf45cf.6@webx.la2eafNXanI>
Date: Sun, 11 Jan 2004 16:17:17 -0800
References: <2ccf45cf.-1@webx.la2eafNXanI>
Lines: 8
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit