--- id: 5d71c20f848f6914ab898980 title: Part 83 challengeType: 0 dashedName: part-83 --- # --description-- Now use the `+=` operator to add to `text.innerText`. Add the string " In your inventory you have: " (with spaces at the beginning and end). Then add the `inventory` variable to the end of the string. # --hints-- See description above for instructions. ```js (inventory = ['potato', 'carrot']), sellWeapon(), assert( text.innerText === 'You sold a potato. In your inventory you have: carrot' ); ``` # --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 ```