- Learning Node.js Development
- Andrew Mead
- 142字
- 2021-06-30 18:56:53
Exercise – adding two else if clauses to an if block
Now, what I'd like you to do is add two more else if clauses to our if block, which will be as follows:
- One will be for the read command, which will be responsible for getting an individual note back
- Another one called remove will be responsible for removing the note
All you have to do is add the else if statement for both of them, and then just put a quick console.log printing something like Fetching note or Removing note.
Take a moment to knock that out as your challenge for this section. Once you add those two else if clauses, run both of them from the Terminal and make sure your log shows up. If it does show up, you are done, you can move ahead with this section.
推薦閱讀
- C++黑客編程揭秘與防范
- 數(shù)字烏托邦
- 互聯(lián)網(wǎng)基礎(chǔ)資源技術(shù)與應(yīng)用發(fā)展態(tài)勢(2021—2023)
- Getting Started with WebRTC
- Practical Web Design
- Android UI Design
- 紅藍(lán)攻防:構(gòu)建實戰(zhàn)化網(wǎng)絡(luò)安全防御體系
- 語音信號處理及Blackfin DSP實現(xiàn)
- AIoT應(yīng)用開發(fā)與實踐
- 局域網(wǎng)組成實踐
- 數(shù)據(jù)血緣分析原理與實踐
- 全聯(lián)網(wǎng)標(biāo)識服務(wù)
- 計算機通信網(wǎng)絡(luò)安全
- Python API Development Fundamentals
- 區(qū)塊鏈社區(qū)運營手冊