Control flow
Assignments / Declarations
Arrays
Constants/Literals
new
Array([
size|
elem[
,elem]]
)
ary.
length
ary.join(seperator)
str.split(regExp)
ary.reverse()
ary.sort([
sortFunc]
)
ary.
map([
mapFunc]
)
for...in
[
a, b, c] =
ary
ary1.concat(ary2)
ary1.slice(start,[
end]
)
ary1.
splice(start[,length][,elements]
)
VBArray:
toArray,
getItem,
dimensions,
lbound,
ubound
Enumerator:
atEnd,
item,
moveFirst,
moveNext
array.At(index)
array.
Max(args)
Boolean:
true:
object,
non-empty string,
non zero
false: 0,
null,
NaN,
undefined,
empty string
Numbers:
MAX_VALUE,
MIN_VALUE,
NaN,
NEGATIVE_INFINITY,
POSITIVE_INFINITY,
Infinity
Math.PI,
Math.E
Numbers
Math object:
abs,
ceil,
floor,
max,
min,
random,
round,
acos,
asin,
atan,
atan2,
cos,
exp,
log,
pow,
sin,
sqrt,
tan,
E,
LN2,
LN10,
LOG2E,
LOG10E,
PI,
SQRT1_2,
SQRT2
Strings see also User defined functions
Regular Expressions Syntax
String object
str.length
str.substr(start [
,
length ]
)
str.substring(start,
end)
str.charAt(idx)
str.charCodeAt(idx)
String.fromCharCode(code
[
, code]
)
str.indexOf(substr,
start)
str.lastIndexOf(substr,
start)
str.split(regExp)
ary.join(seperator)
toLowerCase,
toUpperCase
escape,
unescape
concat,
slice
match,
replace,
search
anchor,
big,
blink,
bold,
fixed,
fontcolor,
fontsize,
italics,
link,
small,
strike,
sub,
sup
formatNumber,
formatPercent,
formatCurrency,
formatDateTime
LTrim,
RTrim,
Trim,
Len,
Left,
Right,
Mid,
inStr
RegExp
index,
input ($_),
lastIndex,
lastMatch
($&),
lastParen ($+),
leftContext ($'),
multiline
($*),
rightContext ($'),
1ドル...9ドル
Regular Expression
global,
ignorecase,
lastIndex,
source
compile(pattern),
exec(str),
test(str)
Operators
Addition (+),
Subtraction
(-)
Modulus arithmetic (%)
Multiplication (*),
Division
(/)
Negation (-)
Bitwise And (&),
Or (|),
Not (~),
Xor (^)
Bitwise Left Shift (<<),
Shift Right (>>)
Unsigned Shift Right (>>>)
Decrement (--),
Increment (++)
Equality (==), Inequality (!=)
Less Than (<), Less Than or Equal To
(<=)
Greater Than (>), Greater Than or Equal To
(>=)
Logical And(&&),
Or
(||),
Not (!)
Conditional (?:)
Comma (,)
delete,
typeOf,
void
Dates and Time
Date object:
toGMTString,
toLocaleString,
toUTCString,
parse,
UTC,
getDay,
getUTCDay,
getDate,
getFullYear,
getMonth,
getYear,
getUTCDate,
getUTCFullYear,
getUTCMonth,
setDate,
setFullYear,
setMonth,
setYear,
setUTCDate,
setUTCFullYear,
setUTCMonth,
getHours,
getMilliseconds,
getMinutes,
getSeconds,
getTime,
getUTCHours,
getUTCMilliseconds,
getUTCMinutes,
getUTCSeconds,
getTimezoneOffset,
setHours,
setMilliseconds,
setMinutes,
setSeconds,
setTime,
setUTCHours,
setUTCMilliseconds,
setUTCMinutes,
setUTCSeconds,
timeoutID=setTimeout(action,msec)
Function Creation
^
Global Functions
Comments
Input / Output 3D^
© 1997 by Microsoft Corporation.
All rights reserved.
See:
See also:
-
https://codepen.io/ Better than
JSFiddle+
-
https://jsbin.com/kucutojono/edit?js,console,output Calling
a function in (0, function()) form changes 'this' from local to
global. Useful because function.call(windows) as a way to control
'this' requires the name of the global object. And depending on the environment,
it might not be windows. E.g. Javascript running on a server, node, embedded,
whatever.
var x = "xGlobalFromWindow";
var obj = {
x: "xLocalFromObject",
getMyX: function() {
return this.x;
}
}
console.log("(0, obj.getMyX)(): " + (0, obj.getMyX)() );
console.log("obj.getMyX(): " + obj.getMyX() );
-
http://eloquentjavascript.net/
comprehensive introduction to the JavaScript programming language
-
https://www.sitepoint.com/demystifying-javascript-closures-callbacks-iifes/
-
http://javascript-reference.info/
A Quick Reference with lots of examples.
-
http://sweatte.wordpress.com/javascript-optimization/
-
http://www.bristle.com/Tips/JavaScript.htm
file: /Techref/inet/iis/jscript/htm/js429.htm,
23KB, , updated: 2023年4月14日 11:16, local time: 2025年9月5日 04:34,
©2025 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Questions?<A HREF="http://techref.massmind.org/techref/inet/iis/jscript/htm/js429.htm"> Microsoft JScript Features - ECMA</A>
Did you find what you needed?
Welcome to massmind.org!
Welcome to techref.massmind.org!
.