Skip to content

Introduction to Javascript: Programming with Functions

Notifications You must be signed in to change notification settings

XiaoqiTang/cpln692-week2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Week 2

As always: make a copy (fork) of this repository to commit changes to

slides

Week 1 Review

Git/Github continued

  • Forking
  • Pull requests (turning in assignments)

Javascript Fundamentals

  • Data types
  • Conditions
  • Functions
  • Scope

Assignment

Code Academy

  • Complete Units 5-8 in the Javascript coursework
    • Arrays
    • Loops
    • Iterators (loopy functions)
    • Objects and properties

Project

We're producing a simple map to help people find health centers in the Philadelphia area. Our application has two goals:

First, we'd like to provide this data in javascript arrays. We should print these arrays to the console.

  • On application start, use console.log to show an array of arrays in which the first sub-array contains keys and the rest of the arrays contain the 'rows' of our data
  • An example of what this would look like for a different dataset: [["name", "job"],["Bruce Springsteen", "Musician"],["Terry Gross", "Journalist"]]

Second, we want to know where the health centers are located within the zip codes from 19140 to 19149 (inclusive).

  • All and only markers found within the zip code range from 19140 to 19149 should appear
  • Each marker should have a popup when clicked which tells us the location name

Extra

Some health centers offer dental services as well. Can you find a way to give centers that provide dental services a different icon than those that do not?

About

Introduction to Javascript: Programming with Functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 43.0%
  • JavaScript 42.3%
  • HTML 14.7%