(SOLOVED) - Dynamic code "firstName"

Folks, for the vast majority of you this will probably be simple code, but after 4 hours I’m scratching my head.

I want to input the users first name in to a title, i.e. Bob, good luck.

Usually, I’ve been putting the first name on a seperate line and it’s simple, just add a dynamic value, but trying to do it on the same line followed by a comma “,” and then the rest of the sentence is testing me.

p.s. I’ve been coding for just over a week, so complete novice.

Any help appreciated guys.

Hi, TomTimp .

I believe the last set of parentheses in the last two lines are unnecessary; as a result, the following lines of code:

let fullSentence = (firstName + ", good luck.");
$w("#GoodLuck#GoodLuck").value = (fullSentence);

can be replaced with the following:

let fullSentence = firstName + ", good luck.";
$w("#GoodLuck#GoodLuck").value = fullSentence;