Giter Club home page Giter Club logo

addressbook's Introduction

addressBook

Whiteboard your app

Make a code plan

Pseudo code and then translate to JavaScript Create a new repo (name it descriptively well), clone it to your local machine and share it with your partner

Open the directory and create an index.html and main.js file to fetch a user and display them one at at time

Use the API: https://randomuser.me/api/ to fetch a user now Fetch a new user multiple times and store them in an array

function to perform a basic fetch and put the results in the addressBook array

then list out all the users in your address book array by name and picture

loop through ... use .map()

figure out how to to fetch multiple users in one fetch request

look at docs:

https://randomuser.me/api/?results=20&nat=us

Then list out all the users in your address book array by name and picture Figure out how to fetch multiple users in one fetch request

Fetch multiple users on window load run the fetch function as soon as the web page loads in the window

window.onloadI(call the mainFunction()) first line in my js file

Add a button to each user that when clicked displays the rest of their information like DOB, address and so forth

toggle button  show or hide the extra info

https://www.w3schools.com/howto/howto_js_toggle_hide_show.asp

Once you have the functionality working, feel free to style and structure your address book with CSS and HTML

addressbook's People

Contributors

ruben-arcos 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.