--- id: 62a7bf06d2ad9d1c5024e833 title: Step 40 challengeType: 0 dashedName: step-40 --- # --description-- You will also need to update the functions that run when the buttons are clicked again. In your `goStore()` function, update the `onclick` property for each button to run `buyHealth`, `buyWeapon`, and `goTown`, respectively. # --hints-- You should use dot notation to access the `onclick` property of `button1`. ```js assert.match(code, /button1\.onclick/); ``` You should not use `let` or `const` to access the `onclick` property of `button1`. ```js assert.notMatch(code, /(let|const)\s+button1\.onclick/); ``` You should set the `onclick` property of `button1` to be `buyHealth`. ```js assert.match(code, /button1\.onclick\s*=\s*buyHealth/); ``` You should set the `onclick` property of `button1` in your `goStore` function. ```js assert.match(goStore.toString(), /button1\.onclick\s*=\s*buyHealth/); ``` You should use dot notation to access the `onclick` property of `button2`. ```js assert.match(code, /button2\.onclick/); ``` You should not use `let` or `const` to access the `onclick` property of `button2`. ```js assert.notMatch(code, /(let|const)\s+button2\.onclick/); ``` You should set the `onclick` property of `button2` to be `buyWeapon`. ```js assert.match(code, /button2\.onclick\s*=\s*buyWeapon/); ``` You should set the `onclick` property of `button2` in your `goStore` function. ```js assert.match(goStore.toString(), /button2\.onclick\s*=\s*buyWeapon/); ``` You should use dot notation to access the `onclick` property of `button3`. ```js assert.match(code, /button3\.onclick/); ``` You should not use `let` or `const` to access the `onclick` property of `button3`. ```js assert.notMatch(code, /(let|const)\s+button3\.onclick/); ``` You should set the `onclick` property of `button3` to be `goTown`. ```js assert.match(code, /button3\.onclick\s*=\s*goTown/); ``` You should set the `onclick` property of `button3` in your `goStore` function. ```js assert.match(goStore.toString(), /button3\.onclick\s*=\s*goTown/); ``` # --seed-- ## --seed-contents-- ```html