- 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.
推薦閱讀
- Application Development with Qt Creator(Second Edition)
- EDA技術與VHDL編程
- 異構基因共表達網絡的分析方法
- 物聯網信息安全
- 新一代物聯網架構技術:分層算力網絡
- HCNA網絡技術
- HTML5 Game development with ImpactJS
- 局域網組建、管理與維護項目教程(Windows Server 2003)
- 互聯網安全的40個智慧洞見:2015年中國互聯網安全大會文集
- 企業私有云建設指南
- 端到端QoS網絡設計
- 網絡AI+:2030后的未來網絡
- 語音信號處理及Blackfin DSP實現
- 網絡利他行為研究:積極心理學的視角
- Qt5 Python GUI Programming Cookbook