/
eb
/
grokking_algorithms
Обзор
Документация
Войти
/
eb
/
grokking_algorithms
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
03_recursion/javascript/02_greet.js
27 строк
462 B
Alexandr Shulaev
Fixed formatting problems and JSDoc (#131)
14 сен 2020, 18:46
Не верифицирован
14 сен 2020, 18:46
34df0a6
Код
Авторство
О чём код?
/** * 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");