Home arrow JavaScript arrow Introducing JavaScript Functions and Loops
JAVASCRIPT

Introducing JavaScript Functions and Loops


Today, you will learn about functions from a man who can barely function, because it is 8:48 in the morning and my soda has yet to kick in. I would say wait for it, but I know you are so excited to read the rest of this article that you can't function. And if you can't function, and I can't function, how is JavaScript gonna function? Well, you'll have to keep reading to find out.

Author Info:
By: James Payne
Rating: 4 stars4 stars4 stars4 stars4 stars / 7
November 12, 2007
TABLE OF CONTENTS:
  1. · Introducing JavaScript Functions and Loops
  2. · Putting the Fun in Your Functions
  3. · Loops
  4. · While Loop

print this article
SEARCH DEVARTICLES

Introducing JavaScript Functions and Loops
(Page 1 of 4 )

Function Junction

I never watched "Conjunction Junction" before, although I do remember that Bill up on Capital Hill for some reason. I was more into Reading Rainbow, Captain Kangaroo, and the Smurfs.

Functions in JavaScript (as well as every other language) are a block of code you can use over and over again. It saves the programmer from having to code certain items throughout the program. For instance, if you play a video game and the X button makes your character do a roundhouse kick, pressing that X button triggers that function each time. Imagine playing Tekken or Street Fighter, and the poor programmer who would have to individually program each kick you did. It would take forever.

You saw examples of functions in our previous tutorial. Now we are going to take a closer look at them and learn how to call them, or trigger them into action. So sit back, grab yourself a case of Jolt Cola, set your phone to vibrate, and let's get to work.


blog comments powered by Disqus
JAVASCRIPT ARTICLES

- Project Nashorn to Make Java, JavaScript Wor...
- JavaScript Virus Attacks Tumblr Blogs
- Google Releases Stable Dart Version, JavaScr...
- Khan Academy Unveils New JavaScript Learning...
- Accessing Nitro? There`s an App for That
- JQuery 2.0 Leaving Older IE Versions Behind
- Fastest JavaScript Engine Might Surprise You
- Microsoft Adjusting Chakra for IE 10
- Brendan Eich: We Don`t Need Google Native Cl...
- An Overview of JavaScript Statements
- An Overview of JavaScript Operators
- Overview of JavaScript Variables
- More of the Top jQuery Social Plugins
- The Top jQuery Social Plugins
- More of the Top jQuery Slider Plugins

Watch our Tech Videos 
Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 

Developer Shed Affiliates

 




© 2003-2014 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials