- [001]. Базовый синтаксис JavaScript
- [002]. Node.js Введение в технологию
- [003]. Асинхронное программирование в Node.js и JavaScript
- [004]. Карта специальности инженер-программист
- [005]. Базовый синтаксис JavaScript, продолжение
- [006]. Архитектурный подход к программированию
- [007]. Обзор встроенного Node.js API
- [008] Функции, стрелочные функции, контексты, замыкания в JavaScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Another approach of Switch case | |
// Output => | |
// Result: () => { | |
// const r = 1 * 56 | |
// const ar = r - 4 | |
// | |
// return ar | |
// } | |
const first = () => { | |
const r = 1 * 56 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Could be async function | |
// Output => Result: 52 | |
function someFunction (args) { | |
switch (args) { | |
case 'first': | |
const r = 1 * 56 | |
const ar = r - 4 | |
return ar | |
case 'second': |