Giter Club home page Giter Club logo

task-mern's Introduction

Readme

Install MongoDB in local

scoop install main/mongodb
scoop install extras/mongosh    # Shell
scoop install extras/mongodb-compass    # GUI
mongod --help   # help
mongod --install    # Iinstall Windows service
net start mongodb   # Start mongodb service
net stop mongodb    # Stop mongodb service
mongosh             # Open the Shell that can show the DB connection

Extensions

  • Code Spell Checker

Avoid some bug by writing.

  • Code auto formate
    • Eslint
    • Prettier - Code formatter
    • Settings: Format on save

Async Await

https://juejin.cn/post/6844903984889593863

link

总结来说,同步和异步的区别:请求发出后,是否需要等待结果,才能继续执行其他操作。

同步:在JavaScript中,同步操作意味着代码的执行顺序是从上到下,每一行代码都必须等上一行代码执行完毕后,才能进行下一行代码的执行。 异步:异步操作则允许我们在等待某些操作完成的同时进行其他操作。

异步操作不会阻塞后面代码的执行,当异步操作完成时,通常会通过回调函数的方式通知我们

现在再来看看async/await 的特点:

当 await 后面跟的是 Promise 对象时,才会异步执行,其它类型的数据会同步执行 返回的仍然是个 Promise 对象,上面代码中的 return 'done'; 会直接被下面 then 函数接收到

task-mern's People

Watchers

 avatar

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.