- 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ò)對(duì)齊
- 微商之道
- 異構(gòu)基因共表達(dá)網(wǎng)絡(luò)的分析方法
- HCNA網(wǎng)絡(luò)技術(shù)
- 信息通信網(wǎng)絡(luò)建設(shè)安全管理概要2
- 互聯(lián)網(wǎng)安全的40個(gè)智慧洞見(jiàn):2015年中國(guó)互聯(lián)網(wǎng)安全大會(huì)文集
- OMNeT++與網(wǎng)絡(luò)仿真
- 網(wǎng)管第一課:網(wǎng)絡(luò)操作系統(tǒng)與配置管理
- 局域網(wǎng)組成實(shí)踐
- NB-IoT原理和優(yōu)化
- Enterprise ApplicationDevelopment with Ext JSand Spring
- 網(wǎng)絡(luò)空間作戰(zhàn):機(jī)理與籌劃
- 一板成功:高速電路研發(fā)與設(shè)計(jì)典型故障案例解析
- Node-RED物聯(lián)網(wǎng)應(yīng)用開(kāi)發(fā)工程實(shí)踐
- 中小型局域網(wǎng)搭建與管理實(shí)訓(xùn)教程