My first JavaScript

I need to add a button to attach it to my index.html but this is what my first prompt javascript will be <3