GithubHelp home page GithubHelp logo

zero-to-mastery / js_fun_practice Goto Github PK

View Code? Open in Web Editor NEW
728.0 18.0 577.0 551 KB

A list of small & fun functional programming exercises in JavaScript

License: MIT License

JavaScript 98.23% HTML 1.43% CSS 0.34%
javascript-puzzles javascript-practice-problems hacktoberfest

js_fun_practice's People

Contributors

asarora72 avatar chouettevan avatar developeradam-github avatar ezclops avatar gabrielmchugh avatar goosenjuice avatar gsakshay avatar hamzasayyid avatar hegeman-thomas001 avatar hellohien avatar kopal960 avatar l-white avatar luigicampagnola avatar mariko971 avatar mattcsmith avatar maurice972 avatar mayank0255 avatar mcken-vince avatar nguyenn95 avatar okellosam21 avatar realcollin avatar rntaate avatar saeedtlb avatar salihbezai avatar saud06 avatar sophiabrandt avatar thomas-lysens avatar vron77 avatar yejielw avatar youngkaneda 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

js_fun_practice's Issues

Error in "schmeb0704_solution.js" file

When running test using the "npm run test" command, all tests seems to be working fine but one. I think there is a problem with one of the solutions that were pushed to the zero-to-mastery repo, specifically in the file named "schmeb0704_solution.js" located in the Solutions folder.

Parenthese Mismatch

The readme contains a potential parentheses mismatch in the addmTwo example, specifically in the second usage example:

addmTwo(m(1, m(Math.PI, 'pi'))) // {value:4.14159..., source:"(1+pi)"}

It seems there might be an extra closing parenthesis at the end of the source value. The correct representation should likely be:

addmTwo(m(1), m(Math.PI, 'pi')) // {value:4.14159..., source:"(1+pi)"}

This adjustment ensures that the parentheses in the source value are properly matched and represent the intended mathematical expression.

Please review and address this discrepancy in the readme.

Thank you!

[Enhancement]: Add tests

It would be cool if there was a way to run tests.

Example:
I create a new JavaScript file with my solutions in Solutions/my-solutions.js.

I run npm run test.

The test runner will tell me if I have any errors.

Caveat: I don't want failing tests to be blocking for a PR. ZTM members should be able to add solution files to this repository regardless of failing tests.

package.json issue

package.json is showing various errors whilw launching the file, like directory or compiling issue

Format used for generators are different between tests and examples

The generator functions (genFrom, genTo, etc) don't have the same return format in the tests and in the examples in the README.md.

In the tests, the format follows the iterator protocol (an object with a next method that returns a value and a done property) and in the examples it only returns a value.

How to contribute

Someone to please enlighten me more on how to use the project and contribute to it, thanks.

Please invite me to the community

I found this open-source community while I was searching for open-source project to contribute.
I am looking forward to contributing to the projects.

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.