Confused with level 4-Please Explain!

I’m trying to figure out how the message,
Welcome,
(Your name)
and
(friends name)
is produced.
This all seems to be happening in lines 9 and 10, but I think I’m having troubles how those are producing both the words “Welcome” and “and” and also returning the variable values for name and friend’s name.
I’m not sure if I just don’t understand the 3 parameters of the “set property” or if I’m missing something else.
Hope someone can help explain this so I can then explain it to students if they ask.

@cpautler

Did this get posted in the correct section? Unit 6 is for the performance tasks in CS Principles. Let us know which course, unit and lesson you need help with and someone will jump in to help.

Happy computing,
Andrea

Nope. Sorry. Should be 6.4 of CSD. Not CSP.
Thanks

@cpautler

Hi Chris,

You will need to change Line 6. (Click on the “Show me Where” link to point to that line.)

The model for how to use the new block is on Line 4.

You can also click the example solution in the Teacher Panel.

Elizabeth

2 Likes