My code
console.log('Starting app');
const fs = require('fs');
const os = require('os');
const _ = require('lodash');
const notes = require('./notes.js');
var command = process.argv[2];
console.log(command);
if (Comment = 'add') {
    console.log('adding new note');
  } else if (command = 'list') {
    console.log('listing all notes');
  } else {
    console.log('command not recognized');
  }
When I run
 node app.js list
I got
Starting app
Starting node.js
list
adding new note
What is wrong with my else if statement?
 
     
     
    