video shows the new features in gimp 2.8 :
single window mode
image bar
arrangement options
resources tags
Rotating brushes
Improved Text Tool
A new tool: Cage Transform
..........
<html>
<head>
<title>JavaScript</title>
<script language="JavaScript"
type="text/javascript">
function showText() {
window.alert("Welcome to JavaScript!");
}
</script>
</head>
<body onload="showText();">
</body>
</html>
the following table is organized by operator precedence.
The operators listed first have higher precedence than those listed last.
with background color separating groups of operators at the same precedence level.
The column labeled A gives the operator associativity,
which can be L (left-to-right) or R (right-to-left),
and the column N specifies the number of operands
Operator | Operation | A | N | |
++ - - - + ~ ! delete typeof void | Pre- or post-increment Pre- or post-decrement Negate number Convert to number Invert bits Invert boolean value Remove a property Determine type of operand Return undefined value | R R R R R R R R R | 1 1 1 1 1 1 1 1 1 | |
*, /, % | Multiply, divide, remainder | L | 2 | |
+, - + | Add, subtract Concatenate strings | L L | 2 2 | |
<< >> >>> | Shift left Shift right with sign extension Shift right with zero extension | L L L | 2 2 2 | |
<, <=,>, >= <, <=,>, >= instanceof in | Compare in numeric order Compare in alphabetic order Test object class Test whether property exists | L L L L | 2 2 2 2 | |
= = != = = = != = | Test for equality Test for inequality Test for strict equality Test for strict inequality | L L L L | 2 2 2 2 | |
& | Compute bitwise AND | L | 2 | |
^ | Compute bitwise XOR | L | 2 | |
| | Compute bitwise OR | L | 2 | |
&& | Compute logical AND | L | 2 | |
|| | Compute logical OR | L | 2 | |
?: | Choose 2nd or 3rd operand | R | 3 | |
= *=, /=, %=, +=, -=, &=, ^=, |=, <<=, >>=, >>>= | Assign to a variable or property Operate and assign | R R | 2 2 | |
, | Discard 1st operand, return second | L | 2 |
var r = 1 + 2 * 3 / 4; // 2.5
var r = (1 + ( ( 2 * 3 ) / 4)); // 2.5
The expression is evaluated and the result is assigned to variable r. return;
return expression;
Example :
function sum (a, b) {
var result= a + b;
return result;
} the return value can be assigned to a variable in function call
var total=sum(1, 2);
if (condition){
// statements;
} The if statement also includes an optional else clause .
The if evaluates the expression, that is test condition, in parentheses,
and if the expression evaluates to true, the block after the opening curly
braces is executed; otherwise the block after the else is executed.
if (condition){
// statements1;
}
else{
// statements2;
}if/else if
if (condition) {
// statements1;
}
else if (condition) {
// statements2;
}
else if (condition) {
// statements3;
}
else{
// statements4;
} This statement enables you to evaluate an expression and match the expression's
value to a number of test values, and the code will be executed
when a match is found.
You place the expression to evaluate in parentheses after the switch
keyword, and the test values you want to match in a set of case statements.
If a match found,the code in that case statement is executed,
and a break statement ends the switch statement.
switch (expression){
case label1:
// statements
break;
case label2:
// statements
break;
// ...
[default:
statements]
}
while (condition) {
statements;
increment/decrement counter;
} do
{ statements;}
while (condition);
break - case - catch - continue - default
delete - do - else - finally - for - function
if - in - instanceof - new - return - switch - this - throw
try - typeof - var - void - while - with
abstract - boolean - byte - char - class - const
debugger - double - enum - export - extends
final - float - goto - implements - import
int - interface - long - native - package - private
protected - public - short - static - super - synchronized
throws - transient - volatile
arguments - Array - Boolean - Date - decodeURI
decodeURIComponent - encodeURI - Error - escape
eval - EvalError - Function - Infinity - isFinite
isNaN - Math - NaN - Number - Object
parseFloat - parseInt - RangeError - ReferenceError
RegExp - String - SyntaxError - TypeError
undefined - unescape - URIError
<script type="text/javascript">
window.alert("Welcome to JavaScript!");
</script>