Fixed formatting problems and JSDoc (#131)

* Fixed formatting problems and JSDoc

* Added returns for JSDoc
This commit is contained in:
Alexandr Shulaev
2020-09-14 19:46:30 +04:00
committed by GitHub
parent d8da439590
commit 34df0a6d08
6 changed files with 54 additions and 24 deletions

View File

@@ -1,12 +1,23 @@
/**
* Displays a message to the console
* @param {string} name Name
*/
const greet2 = name => console.log(`how are you, ${name}?`);
const bye = () => console.log('ok bye!');
/**
* Displays a message to the console
*/
const bye = () => console.log("ok bye!");
const greet = (name) => {
/**
* 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...');
console.log("getting ready to say bye...");
bye();
};
greet('adit');
greet("adit");