Code Monkey home page Code Monkey logo

javascript-practice's Introduction

JavaScript Practice

Objectives

  • Build out a JavaScript only application that hits an external API. Note: Find an API that doesn't require authentication. You can use one of the API's suggested below.
  • Create an event listener for the button on your DOM that will trigger your API request when clicked.
  • Use AJAX to make the request.
  • Create objects out of the data returned. Each object should have a render() function that just returns a string of html that will eventually be appended to the DOM. You will also need a constructor attribute called all that's an array of all of your objects. Ex: if you're working with the Pokemon API each pokemon should be made into it's own object.
  • Use jQuery to update the DOM by iterating through your all attribute and calling the render() function for each object within a jQuery append.

Instructions

Use the index.js and index.html files in this repo to create your application.

Notice that our HTML file is using a CDN to grab the jQuery library and a script tag to load up our index.js. We have also brought in the Bootstrap library for some pretteh' stylin'.

APIs

javascript-practice's People

Contributors

jjseymour avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.