0Pricing
Dart Academy · Lesson

String Literals and Quotes

Single, double, and triple-quoted strings.

What a String Literal Is

A string literal is text you type directly into your code, wrapped in quotes so Dart treats it as words, not commands.

var greeting = 'Hello, Dart!';

Single Quotes Work Great

The most common way to write text in Dart is with single quotes. They are clean, quick, and the style most Dart code uses.

var name = 'Ada';

All lessons in this course

  1. String Literals and Quotes
  2. String Interpolation With the Dollar Sign
  3. Multi-line and Raw Strings
  4. Everyday String Methods
← Back to Dart Academy