├── README.md ├── asyncawait.js └── githubAvatar.html /README.md: -------------------------------------------------------------------------------- 1 | # JavaScriptSamples 2 | JavaScript bo'yicha misollar 3 | -------------------------------------------------------------------------------- /asyncawait.js: -------------------------------------------------------------------------------- 1 | async function getCustomerName() { 2 | let name = await "Ibrohim"; 3 | console.log(name); 4 | return name; 5 | } 6 | 7 | // promise yordamida chaqirish: 8 | getCustomerName().then(data => console.log(data)); 9 | console.log(1); 10 | getCustomerName(); 11 | console.log(2); -------------------------------------------------------------------------------- /githubAvatar.html: -------------------------------------------------------------------------------- 1 | 30 | 31 | Github foydalanuvchisi nomini: 32 | 33 | 34 |
35 |