Challenge: Greeting Generator
Opgave
Swipe to start coding
Create a program that generates a personalized greeting using a hardcoded name. The output should be produced in two ways: first, by concatenating the name with a greeting string, and second, by using string interpolation with the name.
- Return a greeting message that includes the provided name using string concatenation.
- Return a greeting message that includes the provided name using string interpolation.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 2
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Fantastisk!
Completion rate forbedret til 4.76
Challenge: Greeting Generator
Stryg for at vise menuen
Opgave
Swipe to start coding
Create a program that generates a personalized greeting using a hardcoded name. The output should be produced in two ways: first, by concatenating the name with a greeting string, and second, by using string interpolation with the name.
- Return a greeting message that includes the provided name using string concatenation.
- Return a greeting message that includes the provided name using string interpolation.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 2
single