+ 1
Better option
Isn't is better to do Console.WriteLine("Hello " + yourName); instead of the place holder?
1 Réponse
+ 1
No this is just personal preference.
https://code.sololearn.com/cZAfo3Y9ElXv
Every line has the same output.
OK.
In very detail using placeholders seems the better one. Because string are immutable. Concatenation of 2 strings "hello" and "YourName" creates a new string.
https://stackoverflow.com/questions/16432/string-output-format-or-concat-in-c