Arrays all start from 0. javascript is arrayname[i], and vbscript is arrayname(i)
The string of javascript still starts from 0, for example, take the first character, stringname.charAt(0).
var s="abcd";
s.indexOf("b") returns 1
The string subscript of asp starts from 1. For example, take the first character: mid(stringname,1,1).
For example: s="abcd"
instr(s,"b") returns 2.
In addition, the customary parameters of asp's string function are (subscript, length), while js is (first subscript, second subscript). See the difference between asp's mid() and js' substring()
Express outrage at vbscript's inconsistent arrays and strings.