Files
grokking_algorithms/03_recursion/javascript/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

28 lines
462 B
JavaScript

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