Comparison
Comparison
JS
Case-sensitive Supported by most browsers, phones and tablets Declare a variable with: var Statements end with ; // 1 line comment starts w slashes OR /* multi-line comment goes here and ends when you finally type */ Combine strings and variables by placing a the two. Example:
VB
Not case-sensitive Only works in Internet Explorer Declare a variable with: dim Statements end when a new line begins ' ' ' ' comments begin with apostrophe no multi-line comments in VB so just put an apostrophe every time
+ between
function
p2
Sub
fred
One or more statements
}
if(x<y){
One or more statements;
end sub If
x<y
Then
} else {
One or more different statements;
Else
One or more different statements
End If
newVBArray = Split(nameOfSomeString,"*") For i=Lbound(arrayName) to Ubound(arrayName)
One or more statements;
}
var newJSArray = nameOfSomeString
.split("*");
for(i=0;i<arrayName.length;i++){
One or more statements;
}
os = theArrayFromAnEarlierSplit
Next
[i];
os = theArrayFromAnEarlierSplit
(i)