tkraak / fewd-js-event-practice

An exercise to practice JavaScript event handlers.

Home Page:https://tkraak.github.io/fewd-js-event-practice/public/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting Started

  • fork and clone this repository
  • in your terminal:
    • npm install to install project dependencies
    • npm start to run the website at http://localhost:3000
    • npm run lint to check your JavaScript style with semistandard

Write JavaScript

Open public/main.js in your favorite text editor and write JavaScript so that on click:

  • button one turns red (toggle CSS class button-danger) which means if clicked again it goes back to blue
  • button two changes its inner text to you clicked me
  • button three changes the inner text of button two back to "button two"
  • BONUS: accomplish all of the above by binding only one event listener

About

An exercise to practice JavaScript event handlers.

https://tkraak.github.io/fewd-js-event-practice/public/


Languages

Language:HTML 56.8%Language:JavaScript 43.2%