I want to change the text of a button using the onclick property, but the value of the parameter 'text' it's appearing when i load the page. Also when i click the button it's text changes to 'undefined'.

That's the code (I starded with Javascript like a week ago so it's probably really bad):

```js
function changeText(text) {
  let btn = document.querySelector('button#btn')
  btn.innerHTML = text
}
changeText('new text')
```

```html
<button id="btn" onclick="changeText()"></button>
```