C# / .NET Code Completion Easy +10 XP
String Interpolation
Complete the string interpolation.
C# / .NETFill in the blank
string name = "World";
string msg = ___"Hello, {name}!";Type the missing code
Show answer and explanation
Answer: $
The $ prefix enables string interpolation in C#. Expressions inside {} are evaluated and embedded in the string.
Hint: Which prefix enables string interpolation?
What this challenge tests
Code Completion in C# / .NET: strings, interpolation.