Learning JavaScript Basics
Editor's Pick in JavaScript, September 2005
Want to code in JavaScript? Never done it before? Read this tutorial for beginnners! Get started now.
Loading...
Editor's Pick in JavaScript, September 2005
Want to code in JavaScript? Never done it before? Read this tutorial for beginnners! Get started now.
What is a variable? A variable is an amount of data which can change over time (throughout your program). What is a constant? A constant is an amount of data which will never change. When using variables in JavaScript, here are a few rules to keep in mind...
read more
Here is a quick question. What do you think will be the typeof the following variable:
num1= "45";
If you said, "number" you are wrong! Yes - it is a number, and eventhough the variable name is "num1" that does not matter. It could be named anything...
If you are unfamiliar to what an array is, an array is just a collection of data that is refered to by a common name. Arrays in JavaScript start with element "0." Arrays can offer you a convient way to group related variables...
read moreNow is a good time to discuss operators in JavaScript. I am also doing to discuss If and If/Else statements becuase this is when you are going to use many of these operators. There are several types of operators, and they are listed and described below...
read moreThe math object is a built in object which includes math constants and functions. Theres no need to create any math object, because it already exists automatically when using JavaScript. There are four useful functions in JavaScript...
read moreLoops are an important part of JavaScript. Loops control your program to whatever limits you set them to. There is a loop which executes a group of statements a finite number of times. Then, theres an infinite loop, which is a loop that will never terminate...
read moreFunctions can play an important role in your JavaScript programs. Functions are a set of statements that are put together for a single purpose. You create a function for blocks of code you might need to re-use throughout your program. Using functions make your program modular and flexible...
read moreFirst, events are bits of code that link an action by a user, to an action performed by the computer. The action can be a mouse action or key press on the keyboard, or even loading / unloading a webpage...
read moreShows one line at a time, typing each sentence in one letter at a time. Sentences can easily be added or removed by the Web Master. Reminds us of an old tele-type machine in style, and would look good on a homepage displaying the latest news.
read moreCopyright © . All Rights Reserved