Home Reference Source

src/logic/greeting.js


/**
 * What a great class this is!
 * @example name is a string
 * let myClass = new MyAwesomeClass();
 */
/**
   * Constructor for my awesome class
   * @param {number} foo The foo for my awesome class
   * @param {string} bar The bar for my awesome class
   */ 
//Takes in a string variable as parameter and returns a greeting with that name.
function greeting(name) {
  return "Hello, " + name + "!";
}

module.exports = greeting;