Question: JavaScript Just use JavaScript, dont use html Please answer as soon as possible appjs 1 console.log( 'Starting my Node.JS app... '); 2 const fs =
appjs 1 console.log( 'Starting my Node.JS app... '); 2 const fs = require('fs'); 4 II const require('lodash'); const yargs = require( 'yargs'); const todo = require(../todo.js'); 7 8 const argv = yargs 9 .command('add', 'Add a new todo', f 10 title: describe: 'Title of note, demand: true, alias: 't 12 13 14 15 16 17 2, 1) .help() .argvi 18 var command = process.argv[2], 19 20 console. log(argv); 21 22 if (command : 'add '){ 23 24 25 } else if (command 'list') 26 27 } else if (command === 'get') { 28 29 } else if (command .remove.) { 30 31 else f 32 console.log( 'Adding new item..'; todo.addNote(argv.title, argv.content); todo.findAll); todo.getNote(argv.title); todo.removeNote (argv.title); console.log('Unknown command!); 34
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
