How do you reset your password for youriphone 6s?

I went online and did the whole connect to
a computer thing but when i hold the home button it just says diagnostics.

The passcode to the actual device or the password to your Apple account?

For the device, you go to Settings > Touch ID & Password (obviously you need to know your password beforehand)

If you don't know it then unfortunately you'd have to restore the device by entering DFU mode -

Once restoring, you'd need to enter your Apple email and password so make sure you know that.

For your Apple password, simply go to

The passcode to the actual device or the password to your Apple account?

For the device, you go to Settings > Touch ID & Password (obviously you need to know your password beforehand)

If you don't know it then unfortunately you'd have to restore the device by entering DFU mode -

Once restoring, you'd need to enter your Apple email and password so make sure you know that.

For your Apple password, simply go to