237 Matching Annotations
  1. Jul 2020
    1. One of the best ways is to use “promises,”
    2. function that does something asynchronously should provide a callback argument where we put the function to run after it’s complete
  2. May 2020
    1. 通常,Arrays用于两种数据结构:queue和stack。 要了解什么queue是食品,您可以想象在食品商店中有一个普通的队列:新人们在队列的末端加入队列,而刚开始的人们则先离开队列。这就是为什么我们需要两种方法来实现的原因queue:一种在的末尾添加元素,Array而另一种在的开始处删除元素的方法queue。这两种方法是push()将一个或多个元素添加到数组的末尾并返回新的数组长度,并shift()删除数组的第零个元素并返回其值:
    2. The slice() method works only with arrays whose elements are strings, numbers, or boolean values.

      只有字符串,数字,布尔值三种类型的数组可以用 slice 操作

    3. Indexes can also be negative. If you specify a negative index in the first parameter, it will shift the end of the sequence. For example, slice(-4) call will extract the last four elements of the sequence:

      index 可以是复数,arr.slice(-4)代表从倒数第四个值到最后

    4. The slice() method does not change the source array, but returns a copy of the array

      slice()方法是个纯函数

  3. Apr 2020
  4. Mar 2020
    1. "48 61 76 65 20 79 6f 75 20 73 65 65 6e 20 74 68 65 20 73 6f 75 72 63 65 20 63 6f 64 65 20 6f 66 20 74 68 65 20 4a 65 74 42 72 61 69 6e 73 20 77 65 62 73 69 74 65 3f".split(' ').map(ch => String.fromCharCode((parseInt(ch, 16)))).join('')

      js 16进制转字符

  5. Feb 2020
  6. Jan 2020
  7. Dec 2019
    1. If you need polyfills in your code, consider including core-js in your package.json. This is will configure @babel/present-env to automatically include polyfills based on usage.
  8. Nov 2019
  9. Oct 2019
  10. Aug 2019
  11. Jul 2019
    1. Lexical scope is sometimes also referred to as Static Scope.

      Lexical scope only depends on the code text and not on the runtime callstack

  12. Jun 2019
    1. In this article, we are going to talk about the same kind of much-debated back-end programming technologies like Node.Js and PHP! We will know how do they differ from each other and why Node.js vs PHP is such a hot topic among developers.
  13. May 2019
  14. Apr 2019
  15. Feb 2019
    1. Top Reasons Why to Use Node.js for your E-commerce Business

      The arrival of E-commerce has changed how we shop today in our daily lives. Customers are seen buying on social media channels, Mobile apps, and websites. A set of heavy lighting goes behind an instinctive e-commerce website development that is described by the technical expertise that let into building it.

  16. Dec 2018
  17. Nov 2018
  18. Oct 2018
  19. github.com github.com