官术网_书友最值得收藏!

Node Fundamentals – Part 2

In this chapter, we'll continue our discussion on some more node fundamentals. We'll explore yargs, and we'll see how to parse command-line arguments using process.argv and yargs. After that, we'll explore JSON. JSON is nothing more than a string that looks kind of like a JavaScript object, with the notable differences being that it uses double quotes instead of single quotes and all of your property names—like name and age, in this case—require quotes around them. We'll look into how to convert an object into a string, then define that string, use it, and convert it back to an object.

After we've done that, we'll fill out the addNote function. Finally, we'll look into refactor, moving the functionality into individual functions and testing the functionality.

More specifically, we'll go through following topics:

  • yargs
  • JSON
  • Adding note
  • Refactor
主站蜘蛛池模板: 横山县| 宕昌县| 高雄市| 太原市| 吉首市| 历史| 白河县| 怀来县| 杭锦后旗| 中江县| 莲花县| 马山县| 黎城县| 大安市| 胶南市| 仙桃市| 志丹县| 广河县| 贺兰县| 佛坪县| 黑水县| 华坪县| 平远县| 商都县| 姜堰市| 平阴县| 富川| 永寿县| 滕州市| 永善县| 黎城县| 广州市| 大名县| 普宁市| 禄劝| 新邵县| 英吉沙县| 宿迁市| 和林格尔县| 平凉市| 微山县|