- 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
- 連接未來(lái):從古登堡到谷歌的網(wǎng)絡(luò)革命
- CorelDRAW X6 中文版圖形設(shè)計(jì)實(shí)戰(zhàn)從入門(mén)到精通
- FreeSWITCH 1.2
- Modern JavaScript Web Development Cookbook
- SOA用戶(hù)指南
- Truffle Quick Start Guide
- 網(wǎng)絡(luò)安全技術(shù)與解決方案(修訂版)
- 數(shù)字通信同步技術(shù)的MATLAB與FPGA實(shí)現(xiàn):Altera/Verilog版(第2版)
- SSL VPN : Understanding, evaluating and planning secure, web/based remote access
- 區(qū)塊鏈輕松上手:原理、源碼、搭建與應(yīng)用
- 中國(guó)互聯(lián)網(wǎng)發(fā)展報(bào)告2018
- 智慧光網(wǎng)絡(luò):關(guān)鍵技術(shù)、應(yīng)用實(shí)踐和未來(lái)演進(jìn)
- 語(yǔ)音信號(hào)處理及Blackfin DSP實(shí)現(xiàn)
- 物聯(lián)網(wǎng)的機(jī)遇與利用
- 基于IPv6的家居物聯(lián)網(wǎng)開(kāi)發(fā)與應(yīng)用技術(shù)