Giter Club home page Giter Club logo

js-data's Introduction

JS Data Assignment

Assignment Goals:

  • gain a deeper appreciation for how JavaScript variables are created scoped
  • create JSON Data to represent an object
  • build objects from JSON data
  • use jQuery Ajax methods to add HTML to display the object

GitHub Repository

https://github.com/htc-ccis2591/js-data/

You’ll want to begin each assignment by forking the repository and cloning it locally. When you are done, you’ll push to GitHub and submit a pull request.

Moonflower Feature

A new section was added to the HTML to feature an item from the menu.

Put the Data into JSON

Use the information below to write JSON to hold the featured items for the week. Store this in a separate JSON file. Each featured item has a name, image, and description. There are two featured items this week, but there may be more later, so put them in an array and make sure that your JavaScript can process any number of featured items.

Item 1:

  • name: "Hazelnut Cappuccino",
  • image: "images/cappuccino.jpg",
  • description: "A warm, soothing cappuccino with a touch of hazelnut to warm you as the weather turns."

Item 2:

  • name: "Chocolate Cake",
  • image: "images/choc-cake.jpg",
  • description: "Our chocolate cake is rich, moist, and dark. More chocolate to love."

Use the Data to Show the Features

Use your JSON data to build and add HTML to show the two featured items in the “featured-items” div. Create and add the HTML to the page using JavaScript. The code that you write should be able to add any number of featured items to the page.

js-data's People

Contributors

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