--- id: 5d708dd7066dac7142a6d79e title: Part 76 challengeType: 0 dashedName: part-76 --- # --description-- Once a player has the most powerful weapon, we'll give them the ability to sell their older weapons back. In the else statement, set `button2.innerText` to equal "Sell weapon for 15 gold". Also, set `button2.onclick` to the function name `sellWeapon`. # --hints-- See description above for instructions. ```js assert( buyWeapon .toString() .match( /else\s*\{\s*text\.innerText\s*\=\s*[\'\"\`]You already have the most powerful weapon\![\'\"\`]\;?\s*button2\.innerText\s*\=\s*[\'\"\`]Sell weapon for 15 gold\.?[\'\"\`]\;?\s*button2\.onclick\s*\=\s*sellWeapon\;?\s*\}/ ) ); ``` # --seed-- ## --before-user-code-- ```html