--- id: 5d6f98247c812010bf3327dc title: Part 67 challengeType: 0 dashedName: part-67 --- # --description-- You can insert variables into a string with the concatenation (`+`) operator. Update the "You now have a new weapon." string so it says "You now have a " and then lists the name of the new weapon. Make sure to add a period at the end of the sentence. Here is an example that creates the string "Hello, our name is freeCodeCamp.": ```js let ourName = "freeCodeCamp"; let ourStr = "Hello, our name is " + ourName + "."; ``` # --hints-- See description above for instructions. ```js assert( buyWeapon .toString() .match(/[\'\"\`]You now have a [\'\"\`]\s*\+\s*newWeapon\;?/) ); ``` # --seed-- ## --before-user-code-- ```html RPG - Dragon Repeller
XP: 0 Health: 100 Gold: 50
Monster Name: Health:
Welcome to Dragon Repeller. You must defeat the dragon that is preventing people from leaving the town. You are in the town square. Where do you want to go? Use the buttons above.
``` ## --after-user-code-- ```html ``` ## --seed-contents-- ```html ``` # --solutions-- ```html ```