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

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.

主站蜘蛛池模板: 临颍县| 游戏| 安岳县| 松潘县| 尼木县| 连山| 喀喇| 盐池县| 宽甸| 吴川市| 怀化市| 浦江县| 房产| 胶南市| 密山市| 伊宁县| 汉源县| 霍城县| 麻栗坡县| 东至县| 临湘市| 壶关县| 和田县| 洪洞县| 淮南市| 怀化市| 青岛市| 余江县| 佛冈县| 梓潼县| 扶风县| 馆陶县| 安泽县| 拉孜县| 兴安县| 双峰县| 高要市| 海南省| 尖扎县| 卫辉市| 浮梁县|