Promise 3

Section 17: Asynchronous Code - Code That "Takes a Bit Longer"

The goals 💪🏻What is "Async Code"? ✌🏻Working with Callbacks 👍🏻Promises 👊🏻async / await quiz 질문 1: 동기 코드와 비동기 코드의 차이는 무엇일까요? 동기 코드는 행 단위로 실행되고 비동기 코드는 일부 작업(예: 타이머)이 완료되면 실행됩니다. 동기 코드는 비동기 코드(예: 타이머)가 발견될 때까지 실행되고 이 경우 해당 코드가 실행이 완료될 때까지 실행이 일시 중지됩니다. 둘 사이에는 차이가 없습니다. 질문 2: 이 코드는 콘솔에 무엇을 출력할까요? console.log('Starting!); setTimeout(() => { console.log('Timer completed!'); }, 10); console.log('Finish..

Section 24: SQL & Website Backend Code - Using SQL In Our Website Code

The goals 💪🏻How to connect to databases in code ✌🏻Performing CRUD operations in code 👍🏻Outputting database data Why On The Backend? We should NOT connect to a database from inside our frontend JavaScript code (i.e. from inside the browser). All our HTML, CSS & browser-side JS code is exposed to our website visitors (e.g. via browser dev tools). -Just to be clear: Such changes will NOT be mirrore..

Section 21: Advanced JavaScript - For Backend & Browser (Frontend)

The goals 💪🏻More on Functions & Working with Objects / Arrays ✌🏻Reference vs Primitive Values 👍🏻Asynchronous Code When the function has a default value Then we should write this parameter as the last function greetUser(greetingPrefix, userName = 'user') { console.log(greetingPrefix + ' ' + userName + '!'); } greetUser('Hi', 'Max'); greetUser('Hello'); Special Values / Value Types in JavaScript R..