Git Product home page Git Product logo

week-1-assignment's Introduction

FullStack Development Course Assignments (Week 1)

  • The project contains easy, medium and hard assigments for week 1.
  • 01-js contains assignments related to JavaScript, things that were covered in the first class.
  • 02-async-js contains assignments related to asynchronous JavaScript, things that were covered in the second class.
  • If you have any query then ping us on the Discord server.

week-1-assignment's People

Contributors

hkirat avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

week-1-assignment's Issues

Expenditure-analysis.js only allows a specific name for Total Price spent in output

In JS easy question 2 expenditure analysis, it requires a specific property name for the total amount in output object that is 'totalSpent' but the question doesn't hint it, if you make the entire program right and name the property something else it yields error and all test cases are passed on using the name 'totalSpent' in the output price but this isn't mentioned in question which tells to use 'total_amount_spent'

Updation required in Test Case for Calculator.js - Hard Problem in 01-js

Before :

 test("calculate division by zero", () => {
    expect(() => calc.calculate("10 / 0")).toThrow(Error);
  });

After :

 test("calculate division by zero", () => {
    expect(() => calc.calculate("10 / 0").value()).toThrow(Error);
  });

I would recommend this changes as current code is not working even if error is thrown while checking for division by zero. i.e,
Below code is correct in my view, but still test case is failing.

divide(num) {
    if (num === 0) throw new Error("NaN");
    this.result /= num;
  }

No testcase files found

  • There are no testcases found in the repo.
  • Please mention the testcases or change the instructions.
  • It is creating panic attack for many as it is mentioned in the instructions that one should run test after they have finished the assignment.
  • everyone is running the tests and freaking out because of the error.

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.