JavaScript Math object can be used to perform web-based mathematical calculations. It can compute data input by the user and then displays its output on the web page. It is very useful for programmer to design online applications that involve calculations and games. We will see examples that use Math object in later lessons. These are various methods and properties of the math object which we can use to perform mathematical calculations.
Author: Liew Voon Kiong
JavaScript Dialog box
A dialog box that pop up in a web page will enhance interactivity of the web page. It is normally used in advertising. A dialog box carries a message or a question that required some form of actions from the user, either clicking a button or pressing a key on the keyboard .In JavaScript, the syntax is very simple, you just need to use the alert method.
Read More here:
http://javascript-tutor.net/index.php/lesson-3-javascript-dialog-box/
Variables in JavaScript
A variable is something that holds values or information. The values can be numbers (numeric values), text (strings) or some other kinds of information such as dates, boolean values(true/false) and more. These values can vary from time to time, that is why the name variable. It is similar to the post boxes in the post office, the contents of the post boxes can change but the post boxes still have the same name or label.
In order to identify the variables, we have to name them. There are a few rules regarding variable names in JavaScript , as shown below:
Read more……………
http://javascript-tutor.net/index.php/lesson-4-variables-javascript/
String object in JavaScript is used to manipulated texts and characters. For example, it can used to process names, addresses, cell phone numbers, ID, company names, product codes, serial numbers and more. In fact, strings are considered the building block of the JavaScript program, because the program statements or instructions comprise strings and characters.
JavaScript Basics
JavaScript does not required any special program to run it, you can use any standard text editors such as the Notepad ,WordPad or FrontPage to type it, as it is embedded within an HTML document. To embed the JavaScript into an HTML document, we use the
JavaScript <Script></Script> tags, as follows:
<Script language=”JavaScript”>
JavaScript Statements
</Script>