Basic Web Programming client

Variabel
A variable is an object that contains data data, which can be modified during program execution.
Variable Making
There are two terms commonly used in making variables, namely declarations and initialization. The declaration is used to indicate the process of requesting memory allocation by JavaScript to the operating system. Whereas initialization is used to give the initial value for the variable.
  • Format the var name_variabel variable declaration
  • By adding the var name_variabel initialization = value
Data Type
In javascript data that can be stored in a variable are grouped into three types, namely
  1. Numeric / number (Integer / Integer, Real Number / Float)
  2. Word / sentence (string)
  3. Boolean
Data Type Conversion
Even though Javascript allows for the arrangement of variable type changes transparently, sometimes we also need to forcibly convert variable types. parseInt () and parseFloat () are two functions that can be used for this conversion.
Operator
An operator is a symbol that can be used to manipulate the value of a variable, in other words doing operations, evaluating, and others. There are several types of operators
  • Calculation operator
  • Logic Operator (boolean)
  • String operator
Experiment, make the web page as follows
Save the file as var.html
In the example above the first row is the data stored in variable a, the second row is the data stored in variable b and the third row is data that is in the variable c.
Make a web page as follows.

The result
Make a web page as follows.
Save the file name with the name conversion.html
Example of processing form results with javascript
Make a web page as follows.

Save as number.html

0 Response to "Basic Web Programming client"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel