Coder Social home page Coder Social logo

html_strings's Introduction

HTML Strings

For the following challenges you are going to use a provided data template.

  1. Copy the clone URI from this repo.

  2. In your terminal, go into your wdi folder and type 'git clone' + paste the link. Make sure you're in ~/wdi first!

  3. Open this directory up in your text editor.

  4. Paste the data object from data.js into the js/app.js file.

  5. Type your solutions into the document.ready method.

  6. You should console.log your solutions for the first set of problems.

  7. Run your file by opening your index.html page in Chrome.

  8. Rejoice!

  9. As a warmup, try to log the following values:

    • the name of the course
    • the full array of students
    • all of the first student's information
    • the first student's id and full name
    • the number of students in the class
    • a list of GitHub usernames
  10. Create a function buildGitHubLink that transforms a single student's info into an html string, with the following format:

    <a href="https://github.com/torvalds">Linus Torvalds</a>
    
  11. Using the function you just built, create a function called renderGitHubLinks that takes an array of students and adds their github links to the page.

Extra points if you use built-in Array methods like forEach, map and join and only insert into the DOM once.

html_strings's People

Watchers

 avatar  avatar  avatar  avatar

html_strings's Issues

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.