Git Product home page Git Product logo

python.js's People

Contributors

tulip-0333 avatar

Stargazers

Roman avatar  avatar Izzy Waldner avatar

Watchers

 avatar

python.js's Issues

Issue with Exporting String.prototype Methods in Node.js

Hello, @Tulip-0333. If I run in the node.js environment and I use the require statement to export, it shows that reverse is not defined. Later I found that there is no need to export reverse in module.exports because if you export it in String A method is added to .prototype, such as reverse, and you want to export this method through module.exports. It should be noted that the method on String.prototype is global. Once added, all string instances can access this method. So there is no need to export it anymore unless you name it as a new function as a separate module, and the input statement is not right. I didn’t input it, so it just printed out the subsequent output, and then asked me to do it again. Enter, request enhancements and features.

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.