Skip to main content
Code Cinema
JavaScript
String Methods
Call methods on a string. Watch it transform live.
l
e
t
s
=
"
h
e
l
l
o
w
o
r
l
d
"
;
s
.
t
o
U
p
p
e
r
C
a
s
e
(
)
;
s
.
s
l
i
c
e
(
0
,
5
)
;
s
.
r
e
p
l
a
c
e
(
"
w
o
r
l
d
"
,
"
J
S
"
)
;
Click here and start typing...
String transformations — live
Type the first line to declare the string...