官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 台江县| 宁晋县| 汕尾市| 阳曲县| 临沭县| 英德市| 台前县| 富宁县| 邻水| 城口县| 德州市| 平陆县| 阿勒泰市| 元江| 于田县| 威信县| 若尔盖县| 茌平县| 城口县| 塔河县| 咸阳市| 台北市| 惠水县| 沭阳县| 酒泉市| 徐汇区| 彭山县| 泗阳县| 浮梁县| 三台县| 嘉义县| 伊金霍洛旗| 盐边县| 永春县| 黔西县| 武功县| 北碚区| 平凉市| 山西省| 濮阳县| 和平县|