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

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.

主站蜘蛛池模板: 兴业县| 凤台县| 高尔夫| 临沭县| 云林县| 墨脱县| 谷城县| 繁昌县| 南宫市| 岐山县| 珠海市| 无为县| 绥中县| 科尔| 江口县| 公安县| 珲春市| 迁西县| 屏山县| 天峨县| 福鼎市| 定日县| 江源县| 尉氏县| 疏附县| 海盐县| 高台县| 涞源县| 万宁市| 陇西县| 曲阳县| 克山县| 乐清市| 竹山县| 昆明市| 泰来县| 普陀区| 铜山县| 普兰店市| 明溪县| 句容市|