Title: Theory / Important / CS / Programming / JS / The good part / String
Tags: FromInstruction computer_to_instruction hasNotNewEffectReturnsMeaning some_instruction syntactical_sugar

Instruction: s.charAt(p)
Page: 8
Effect: The character at position p
Language: js
Section: 88
Variables: s a string,
p an integer

Instruction: s.charCodeAt(p)
Page: 8
Effect: The code point value of the character at position p
Language: js
Chapter: String
Section: 88
Variables: s a string,
p an integer

Instruction: s1.concat(s2,...,sn)
Page: 8
Effect: The concatenations of each si
Language: js
Chapter: String
Section: 88
Variables: s1, ...,sn strings,

Instruction: a.indexOf(b)
Page: 8
Effect: The position of the first occurrence of b in a, or -1 if such an occurrence does not exists
Language: js
Chapter: String
Section: 88

Instruction: a.indexOf(b,c)
Page: 8
Effect: The position of the first occurrence of b in a greater than or equal to c, or -1 if such an occurrence does not exists
Language: js
Chapter: String
Section: 88

Instruction: a.lastIndexOf(b,c)
Page: 8
Effect: The position of the last occurrence of b in a lesser than or equal to c, or -1 if such an occurrence does not exists
Language: js
Chapter: String
Section: 88

Instruction: a.lastIndexOf(b)
Page: 8
Effect: The position of the last occurrence of b in a or -1 if such an occurrence does not exists
Language: js
Chapter: String
Section: 88

Instruction: a.localeCompare(b)
Page: 8
Language: js
Chapter: String
Section: 88
Returns: negative, 0 or positive value according to the result of the comparison
Extra: An unspecified comparison function for string

Instruction: a.match(r)
Page: 8
Effect: For r without g flag, it is similar to r.exec(a)
For r with g flag, it returns the array of matches of the regexp r against a, excluding the capturing group
Language: js
Chapter: String
Section: 88