Tsallaka zuwa abun ciki
Justice Tech School

String Methods

length, substring, split, replaceAll, trim, toUpperCase, contains and padLeft.

Example
var s = "  Hello, Dart  ".trim();
print(s.length);
print(s.toUpperCase());
print(s.substring(7));
print(s.split(", "));
print(s.replaceAll("l", "L"));
print("7".padLeft(3, "0"));

Exercise

Split text.

s.(",")

Quiz Test

What does trim remove?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.