| 1 |
str.length |
| 2 |
str.charAt() |
| 3 |
strII |
| 4 |
str.toUpperCase() |
| 5 |
str.toLowerCase() |
| 6 |
if ( ~str.indexOf("understr", pos) ) |
| 7 |
substring(start , end) start men end ili mena -x=0 |
| 8 |
substr(start , length) |
| 9 |
slice(start , end) |
| 10 |
String.fromCharCode(code) str.charCodeAt(pos) |
| 11 |
arr = str.split(separator, limit); |
| 12 |
'a'.concat(1, 2, 3, 4) II'a1234' |
| 13 |
str.lastIndexOf(searchValue, fromIndex) from end |
| 14 |
idx = str.search(regexp) |
| 15 |
str.toString() |
| 16 |
object.toString() |
| 17 |
str.valueOf() |
| 18 |
str.indexOf(searchValue, fromIndex) |
| 19 |
str.replace(new RegExp(SubStr,'g'), newSubStr function) |
| 20 |
str.localeCompare(str2) |
| 21 |
o = new Object(); o = {}; arr.key = value; delete arr.key; if ('key' in arr) { arr.key === undefined |
| 22 |
arrI' some key'I = 'value'; |
| 23 |
arr = { key1: value1, key2: value2, key3: value3,}; |
| 24 |
I1,2,'a'I + "" II 1,2,a |
| 25 |
for (key in obj) { |
| 26 |
Object.keys(arr).length |
| 27 |
console.log(var); |
| 28 |
arr.pop(); arr.push(value); arrIarr.lengthI = value; |
| 29 |
arr.shift(); arr.unshift(value;) |
| 30 |
arr.length=0; |
| 31 |
var arr = new Array(2, 3); var arr = new Array(2); {length: 2} arr.0=undefined |
Комментарии