String Basic Operations
beginnerCovers core string primitives — access, concat, substring, search, and split — with their complexity tradeoffs.
Input String
j
[0]a
[1]v
[2]a
[3]s
[4]c
[5]r
[6]i
[7]p
[8]t
[9]Select an operation and click Apply
String Operations
Returns the number of UTF-16 code units in the string. A read-only property, not a method.
Length: 10 · Indices: 0 – 9
str.length
"javascript".length // → 10