Free Web Design, Development and Programming Training and Tutorial Resources




    



January 12, 2008

JavaScript Practice How Tos

Here are several JavaScript Practice How Tos, from webdevelopmenttutorials.com, that show you How to code with JavaScript by looking at the examples provided. You can use the text editor here to practice coding your own JavaScript. Using these JavaScripts examples and tutorials, you will learn the following: what JavaScript is, what can be done with JavaScript, how to embed JavaScript within your web pages, how to link to an external JavaScript file and how to work with JavaScript variables..


An Introduction to JavaScript

JavaScript is used to make web pages interactive, validate forms, detect web browsers, create cookies and more.  Before you begin learning JavaScript, you should should already have at least a basic understanding of HTML/XHTML.

JavaScript is a scripting language that was designed to add interactivity to web pages. JavaScript consists of lines of executable code that can be emedded directly into HTML web pages and is also an interpreted language, which means that scripts are executed without preliminary compilation. JavaScript is free for everyone to use.

How to embed JavaScript into an HTML file
This tutorial teaches you how to JavaScript into an HTML file.

How to write text with JavaScript
This tutorial shows you how to write text with JavaScript using the “document.write” command.

How to add HTML tags to JavaScript
This tutorial demontrates how to add HTML tags to JavaScript.

How to add comments to JavaScript code
This tutorial shows you how to add comments that will not be displayed on web browsers in JavaScript.

How to link to an external JavaScript file
This tutorial shows you how to link to an external JavaScript file.


JavaScript Variable How To Tutorials
These tutorials show you How to name and declare JavaScript variables, assign values to variables, How to convert between different data types and more.

The rules for naming JavaScript variables are:
  – JavaScript variables are case-senstitive, for example, the variable name “MySite” and “mysite” are different
  – they can include letters of the alphabet, both upper-case and lower-case
  – they can include the digits 0-9
  – they can include the underscore (_) character
  – they cannot include spaces or any other punctuation characters
  – the first character of the variable name must be either a letter or an underscore character
  – there is no standard limit on how many characters a variable name can have, but it must fit within one line

This JavaScript tutorial shows you How to do the following with variables:
  – How to assign a value to a variable
  - How to declare JavaScript variables
  – How to change the value of a variable

You can use the text editor here to practice coding your own JavaScript.





Tags for this post>>

No Comments »

No comments yet.

RSS feed for comments on this post.

Leave a comment

You must be logged in to post a comment.