GithubHelp home page GithubHelp logo

模块章节中的一个问题 about node-interview HOT 2 CLOSED

 avatar commented on May 21, 2024
模块章节中的一个问题

from node-interview.

Comments (2)

liuhao1025 avatar liuhao1025 commented on May 21, 2024

这个地方个人感觉是文字游戏啦,独立的上下文阻止的是对全局作用域的污染,按照文中的用语,应该是防止对Node默认的VM的污染。作用域的话应该是指模块的作用域,因为本来就是局部的,所以不需要独立的上下文也不会被污染。
不过还是希望作者出来确认下啦,我是有点没太明白这里想问的是啥 T_T

from node-interview.

Lellansin avatar Lellansin commented on May 21, 2024

可以当做脑筋急转弯。对其了解到不同深度的人会给出不同的想法。

Feel free to reopen.

from node-interview.

Related Issues (20)

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.