|
|
#1 (permalink) Top |
|
Big Geek
![]() |
Hi
Does anyone here know how to use the FOR loop in javascript if yes then can they show me how to write a 20 times table.
__________________
* INTEL PENTIUM D 3.2GHZ 2X1MB 840 DUAL CORE * MSI 945P PLATINUM INTEL 945P SKT775 DDR2 DUAL CORE * 4 x GEIL 512MB PC4300 DDR2 * SEAGATE 200GB 8MB SATA HDD, Seagate 300GB SATA2 * Pioneer DVR-110 16x DL * TASK PSU 520W 34A * ATI RADEON X800GT 256MB PCI-E DUAL DVI * Running 32bit edition of Windows XP PRO + SP2 * DirectX 9.0C |
|
|
|
|
#2 (permalink) Top |
|
The King
![]() ![]() Join Date: Jan 2004
Age: 18 Male
Posts: 5,255
Times Helpful: 403
My Mood: Drunk
Status: Offline
|
Code:
<script type="text/javascript">
var i = 0
var num = 20
for (i=1; i <= 10; i++)
{
document.write(i + " times 20 is " + num)
document.write("<br />")
num = num + 20
}
</script>
__________________
Never trust a program you don't have the source code for. ![]() My website | Powerful Desktop Linux | Linux for human beings | Linux for power users | Linux for ricers |
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| going forever in restart loop. | blackakira | Windows OS's | 1 | 29-11-2005 01:44 AM |
| Fresh Javascript Browser Exploit | syngod | News and Article Comments | 0 | 26-06-2005 10:08 PM |