- fork and clone this repository
- in your terminal:
npm install
to install project dependenciesnpm start
to run the website athttp://localhost:3000
npm run lint
to check your JavaScript style with semistandard
Open public/main.js
in your favorite text editor and write JavaScript so that on click:
button one
turns red (toggle CSS classbutton-danger
) which means if clicked again it goes back to bluebutton two
changes its inner text toyou clicked me
button three
changes the inner text ofbutton two
back to "button two"- BONUS: accomplish all of the above by binding only one event listener