Giter VIP home page Giter VIP logo

phase-0-pac-3-intro-to-functions-lab's Issues

Change sayHiToGrandma() to sayHiToHeadphonedRoomate(), and "I love you, Grandma." to "Let's have dinner, together!"

Canvas Link

https://learning.flatironschool.com/courses/5055/assignments/152503

Concern

The readme asks for function sayHiToGrandma() but the index-test.js asks for sayHiToHeadphonedRoomate(), which is also spelled wrong (roommate). In addition, the readme states: If the string that is passed into the function is equal to "I love you, Grandma.", the function should return "I would love to!", but the index-test.js expects "Let's have dinner, together!" instead of "I love you, Grandma." as stated on lines 47-49.

Additional Context

No response

Suggested Changes

No response

function shout(string) #34

Canvas Link

https://github.com/learn-co-curriculum/phase-0-pac-3-intro-to-functions-lab

Concern

Same issue from #34 . The issue wasn't resolved and I received that the issue was completed. The issue has not been resolved yet. I have saved multiple times and the issue has not been resolved. I received the link, which says it was moved. I also tried accessing to Ask Ada, and I can not access it.

The person who told me to save it and then immediately closed the case, before I can even reply back. I looked at other issues, and I noticed that this is not the first time the issue with Introduction to Functions Lab has occured.

Please advise.

Additional Context

No response

Suggested Changes

No response

A Book Would Be Helpful

Canvas Link

https://learning.flatironschool.com/courses/5729/assignments/179070?module_item_id=395727

Concern

If Im going to pay $17,000.00 for a course, what is an additional $300 for a text book?! As we begin to combine lessons and functions it would be super helpful to be able to flip pages and look up old lessons. Having to go through computer files take too long! I want a hardcore text book!
FlatIron could save the TCs a lot of time and energy by just giving students a book! or even a PDF File they could print on their own!

Additional Context

No response

Suggested Changes

plese see above

Test output error

Student reporting that learn test doesn't work on this lesson, with this error message output:

unexpected character (after ) at line 1, column 1 [parse.c:769] (Oj::ParseError)

Running the learn test with the solution branch reproduces the error.

The issue appears to related to the test script for this particular lesson in the package.json file:

mocha --timeout 5000 --reporter 'json' > .results.json & mocha

This script outputs a test report to the .results.json file which is used to determine whether or not all tests are passing and mark the assignment as complete or incomplete in Canvas. Because this script redirects all console output to the .results.json file, the output includes console messages from the lesson in addition to the test report:

HELLO
hello
{
  "stats": {
    "suites": 5,
    "tests": 7,
    "passes": 7,
    "pending": 0,
    "failures": 0,
    "start": "2022-01-20T14:19:51.600Z",
    "end": "2022-01-20T14:19:51.753Z",
    "duration": 153
  },
  "tests": [
    {
      "title": "receives one argument and returns it in all caps",
      "fullTitle": "shout(string) receives one argument and returns it in all caps",
      "duration": 0,
      "currentRetry": 0,
      "err": {}
    },
    ...
  ]
}

The first two lines "HELLO" and "hello" (which are output after running the code in the index.js file) are not valid JSON, and this causes the learn test command to throw an error.

To fix this, we should use mocha-multi to generate the test report instead of redirecting console output. Other prework lessons can be used as reference for the correct script.

Ref

function shout(string)

Canvas Link

https://github.com/learn-co-curriculum/phase-0-pac-3-intro-to-functions-lab

Concern

I followed the instructions to declare the function in index.js. I even put the "return string.toUpperCase(); " and I still receive the same error that shout is not defined. I noticed that the code is slightly different from the instructions and the code I receive. I went over the instructions for this part over and over. I still receive the same error that shout was not define. I followed the instructions correctly.

Screenshot 2023-10-30 114626

Screenshot 2023-10-30 114749

Screenshot 2023-10-30 114125

Screenshot 2023-10-30 113908

Additional Context

No response

Suggested Changes

No response

functions lab

Canvas Link

https://learning.flatironschool.com/courses/6670/assignments/229144?module_item_id=535658

Concern

My code runs but it does not pass the npm test. I think it is due to some incompatibility in my environment, but how can I test that? I also think the wording of this lab is unclear, I had to look at the test file to see what it wanted since I could not figure out what the lab meant. Is that the intended effect?

Additional Context

No response

Suggested Changes

give us a way to test our environment or is that not possible?

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.