- Learning Node.js Development
- Andrew Mead
- 146字
- 2021-06-30 18:56:54
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
- 通信網(wǎng)絡(luò)基礎(chǔ)與設(shè)備
- 社交網(wǎng)絡(luò)對齊
- Mastering Node.js(Second Edition)
- GPS/GNSS原理與應用(第3版)
- 異構(gòu)基因共表達網(wǎng)絡(luò)的分析方法
- OpenLayers Cookbook
- 物聯(lián)網(wǎng)技術(shù)與應用
- Kong網(wǎng)關(guān):入門、實戰(zhàn)與進階
- 從實踐中學習手機抓包與數(shù)據(jù)分析
- Getting Started with nopCommerce
- 深入理解計算機網(wǎng)絡(luò)
- Qt5 Python GUI Programming Cookbook
- Guide to NoSQL with Azure Cosmos DB
- 智慧城市中的物聯(lián)網(wǎng)技術(shù)
- 物聯(lián)網(wǎng)與智慧廣電