Files
grokking_algorithms/03_recursion/ES6/02_greet.js
Alexandr Shulaev 34df0a6d08 Fixed formatting problems and JSDoc (#131)
* Fixed formatting problems and JSDoc

* Added returns for JSDoc
2020-09-14 10:46:30 -05:00

24 lines
446 B
JavaScript

/**
* Displays a message to the console
* @param {string} name Name
*/
const greet2 = name => console.log(`how are you, ${name}?`);
/**
* Displays a message to the console
*/
const bye = () => console.log("ok bye!");
/**
* Displays a message to the console
* @param {string} name Name
*/
const greet = name => {
console.log(`hello, ${name}!`);
greet2(name);
console.log("getting ready to say bye...");
bye();
};
greet("adit");