- 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.
推薦閱讀
- 通信網(wǎng)絡(luò)基礎(chǔ)與設(shè)備
- 連接未來:從古登堡到谷歌的網(wǎng)絡(luò)革命
- RCNP實(shí)驗(yàn)指南:構(gòu)建高級(jí)的路由互聯(lián)網(wǎng)絡(luò)(BARI)
- Building Django 2.0 Web Applications
- 物聯(lián)網(wǎng)+BIM:構(gòu)建數(shù)字孿生的未來
- Getting Started with Grunt:The JavaScript Task Runner
- 中國互聯(lián)網(wǎng)發(fā)展報(bào)告2018
- 城市治理一網(wǎng)統(tǒng)管
- 新手易學(xué):新手學(xué)淘寶開店
- Windows Server 2012 Hyper-V虛擬化管理實(shí)踐
- jQuery Mobile Web Development Essentials
- 物聯(lián)網(wǎng)場景設(shè)計(jì)與開發(fā)(初級(jí))
- INSTANT LinkedIn Customization How-to
- Hands-On Bitcoin Programming with Python
- 計(jì)算機(jī)網(wǎng)絡(luò)技術(shù)