Giter Site home page Giter Site logo

intermediate-javascript-assessment's Introduction

Intermediate Javascript Assessment

For this assessment, you are required to answer the questions in the src files (start with assessment-part1.js). To check if your answers are correct, open the index.html and look for green dots.

Copyright

© DevMountain LLC, 2017. Unauthorized use and/or duplication of this material without express and written permission from DevMountain, LLC is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to DevMountain with appropriate and specific direction to the original content.

intermediate-javascript-assessment's People

Contributors

joeblank avatar r-walsh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

intermediate-javascript-assessment's Issues

Part 1, question 2

I believe my code should work, but the test fails me. The test may need to be reworked for this kind of solution:

function Vehicle() {
  this.gasRemaining = 100;

  this.drive = function() {
    this.gasRemaining -= 25;
  }
}

var charger = new Vehicle();
var mustange = new Vehicle();

charger.drive();

mustang.drive();
mustang.drive();

Part 2, question 1 (Formatting)

Formatting issue: We should consider telling the student that the $http request will return an array of user objects. We imply it from what we ask, but it's not obvious, and the current wording could confuse them.

Part 3, Problem 3: Refresh Issue?

When I use the $q parameter to create a promise, I pass the test on the first try, but if I refresh specRunner, I might fail the test after the refresh (but not every time). I suspect it's just a timing issue, but it oddly doesn't happen if I use the built-in Promise object.

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.