All posts tagged ‘Programming’

File Under: Glossary


In JavaScript, expressions are phrases that the interpreter can evaluate. For example,

x + 10
x < 10
are expressions since they can be evaluated, while
x = 10
is simply a statement.

In linguistical terms, JavaScript is made up of sentences, phrases, and words. The sentences are JavaScript statements, in which an entire action is expressed. The phrases are JavaScript expressions, in which the elements of the action can be created and put together to make a statement. The words are JavaScript operators, which are used to act upon the data passed to them.

File Under: Glossary


PHP is an open-source scripting language that is embedded alongside HTML to perform interactive functions, such as accessing database information. PHP is similar to Microsoft’s active server page technology, but is used primarily on Linux web servers (or Windows servers with add-on software). An HTML page that has PHP script usually has a “.php” extension. Visit Webmonkey’s Tutorial:PHP Tutorial for Beginners to learn how it works.

File Under: Glossary


A function is a named group of statements in a program that performs a task when it is invoked.

Other programming languages make a distinction between a function, which returns a value, and a procedure, which performs some operation but does not return a value. Since JavaScript does not make this distinction, you can create functions that return values elsewhere in your code.

File Under: Glossary


Software developers need to know which platform their software will be running on. A platform can be an Intel processor running Windows, a Macintosh running System 8, or any combination of hardware and software that works together. Platforms are important for web designers to understand, because they need to make sure their pages will work on more than one platform. Different browsers display web pages differently on various platforms. Since the internet itself is a cross-platform system, designers need to test web pages on different combinations of machines and browsers to ensure the widest possible audience will be able to view their sites.

File Under: Glossary


A hash, also known as an associative array, is a collection of data in which each piece of data has two components: a key and a value. Much like the hash at your local diner, JavaScript hashes go unordered: They’re not indexed by numbers. For example, if you wish to use JavaScript to put up a different GIF animation on your site every day of the week, you might throw all these animations into a hash associated to each weekday as a key. Then you would refer to the key day to invoke that day’s animation.

For example, in a normal array, you’d have:

  dinner[0] = "monkey brain";

  dinner[1] = "meatloaf";

But in a hash, you could use a string as the index:

  dinner["monday"] = "monkey brain";

  dinner["tuesday"] = "meatloaf";