Giter Club home page Giter Club logo

99linesofcode2's Introduction

99 Lines of Code In The File - Part 2 Covalence

Info This lab consists of two parts In this second iteration you will be transforming part 1 of the lab You should copy your files from part 1 and paste them along with this README file into a new folder linked to a new github repository New Objectives Put a button in the HTML that says Sing! Stepping Stone: When you click the button, all the console.log statements from the previous lab should happen. They SHOULD NOT happen before the button is clicked. When you have the button setup and working correctly as described, then: Delete the div with class friend and the headings and paragraphs it contains from your html file Go to your code where you are "singing the song" and accomplish the following using DOM: For every one of your friends, create a div with class friend Put an h3 containing your friend's name in the div Then, instead of using console.log to put the song lyrics in the console, create a paragraph for each song lyric line and put that paragraph in the friend div. To Recap: When you have made these modifications, the page should start out just showing a button labeled "Sing!" Nothing will be logged to the console Clicking the button will cause 5 div elements with class name friend to be added to the page, one for each of your friends Each div contains a friend's name as an h3 and 99 paragraphs, each one representing a lyric line that you previously were logging to the console in part 1 of this lab. Hints You will be using DOM functions to complete this portion of the lab Remember that elements can be added to other elements document.body.appendChild(someElement); someOtherElement.appendChild(anotherElement);

99linesofcode2's People

Contributors

zomievey avatar

Watchers

 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.