Sign in
Log inSign up

module not defined as an Error in javascript

Default profile photo
Anonymous
·Mar 24, 2018
let Menu = {};

module.exports = {
  specialty: "Roasted Beet Burger with Mint Sauce",
  getSpecialty: function() {
    return this.specialty;
  } 
};

While Running above code in console ,It is giving error as "module is not defined"