---
id: 5d6f9a4c7c812010bf3327dd
title: Part 68
challengeType: 0
isBeta: true
---
## Description
Way back at the beginning you created the `inventory` array. Push the `newWeapon` onto the end of the `inventory` array. Here is an example of pushing onto an array:
```js
let arr = ["first"];
let next = "second";
arr.push(next);
// arr now equals ["first", "second"]
```
## Instructions
## Tests
```yml
tests:
- text: See description above for instructions.
# testString: assert(buyWeapon.toString().match(/inventory\.push\(\s*newWeapon\s*\)\;?/));
testString: buyWeapon(), assert.deepStrictEqual(inventory, ['stick', 'dagger']);
```
## Challenge Seed
```html
```
### Before Test
```html
RPG - Dragon Repeller
XP: 0Health: 100Gold: 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.