/js101

Primary LanguageCSS

js101

Setup

Download and save both of the files from the Begin folder as "index.html" and "style.css".

Challenges

  1. Add a JavaScript file to an HTML file and print a message to the console.
  2. Print a message on every click of the button.
  3. Print the value of the text input on every click of the button.
  4. Print the value of the text input on every “Enter” key press.
  5. Change the HTML content with the input value.
  6. Scroll to the second section on "Enter" key press.
  7. Hide the second section on start and show on "Enter" key press.

Further Resources