Git Product home page Git Product logo

js-dom-and-events-acting-on-events-lab-online-web-ft-031119's Introduction

Acting On Events Lab

Instructions

In this lab, you will create a form that adds Scuber employees. It also allows us to clear the list of employees upon a click to the "Clear Employee List" link. We will build up to this functionality with small functions, so read the tests carefully.

You will find your tests underneath the HTML after you run learn-test. We'll be testing against this with the index.html document, but you should still write your code in index.js. Write the following functions:

  • retrieveEmployeeInformation(): This retrieves the employee information from the input. It returns a string equal to the value in the input.

  • addNewElementAsLi(): This function takes the value retrieved from the previous retrieveEmployeeInformation function and adds that string to a new list element which is appended to the ul with class "employee-list".

  • addNewLiOnClick(): This adds the employee name as an li element on click and clears the input value.

  • clearEmployeeListOnLinkClick(): This empties out the employee list when "Clear employee list" button clicked.

Have fun, and good luck!

Resources

js-dom-and-events-acting-on-events-lab-online-web-ft-031119's People

Contributors

drakeltheryuujin avatar maxwellbenton avatar gj avatar pletcher avatar samnags avatar annjohn avatar cecilydowns avatar mendelb avatar jonbf avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.