String Interpolation with 's'

In the following lesson, you will be introduced to the 's' string interpolator.

Processed String Literals

In string interpolation, we work with processed string literals. Processed string literals are simply string literals that require further work or processing during compilation by the compiler.

The s String Interpolator

For string interpolation with s, we prepend an s to any string literal. This allows us to use variables inside a string.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy