parent
91b0b28aa8
commit
359df6860f
|
@ -56,6 +56,30 @@ PQR
|
||||||
// String.fromCharCode(80, 0, 82)
|
// String.fromCharCode(80, 0, 82)
|
||||||
P
|
P
|
||||||
|
|
||||||
|
// charCodeAt
|
||||||
|
// s.charCodeAt(0)
|
||||||
|
102
|
||||||
|
// s.charCodeAt(3)
|
||||||
|
55357
|
||||||
|
// s.charCodeAt(4)
|
||||||
|
56843
|
||||||
|
// s.charCodeAt(5)
|
||||||
|
102
|
||||||
|
// s.charCodeAt(6)
|
||||||
|
111
|
||||||
|
// s.charCodeAt()
|
||||||
|
102
|
||||||
|
// s.charCodeAt(-1)
|
||||||
|
NaN
|
||||||
|
// s.charCodeAt(9)
|
||||||
|
NaN
|
||||||
|
// s.charCodeAt("1")
|
||||||
|
111
|
||||||
|
// s.charCodeAt(undefined)
|
||||||
|
102
|
||||||
|
// s.charCodeAt(NaN)
|
||||||
|
102
|
||||||
|
|
||||||
// indexOf
|
// indexOf
|
||||||
// s.indexOf("test")
|
// s.indexOf("test")
|
||||||
3
|
3
|
||||||
|
@ -188,7 +212,7 @@ HELLO𝔄hello
|
||||||
// s.split(",")
|
// s.split(",")
|
||||||
5
|
5
|
||||||
A,,b,c,
|
A,,b,c,
|
||||||
// s.split(",", 2
|
// s.split(",", 2)
|
||||||
2
|
2
|
||||||
A,
|
A,
|
||||||
// s.split(",", 0)
|
// s.split(",", 0)
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue