전체 글
-
Async AwaitJavaScript 2021. 12. 13. 08:58
자바스크립트의 Async...await 문법의 개념과 사용방법을 정리하였습니다. The async...await syntax allows us to write asynchronous code that reads similarly to traditional synchronous, imperative programs. Its functionaility is completely same as Promises, but async...await powerfully improves the readability and scalability of our code. Example : callback function(traditional) VS Promises VS async...await ..
-
PromiseJavaScript 2021. 12. 13. 07:28
자바스크립트의 Promise 사용법과 문법을 정리하였습니다. An asynchronous operation is one that allows the computer to “move on” to other tasks while waiting for the asynchronous operation to complete. Asynchronous programming means that time-consuming operations don’t have to bring everything else in our programs to a halt. Example : Operations like making a network request or querying a database can ..
-
Asynchronous / Event LoopJavaScript 2021. 12. 12. 18:40
자바스크립트의 비동기 코드와 이벤트 루프를 이해하기 위해 참고할 만한 자료입니다. https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Concepts General asynchronous programming concepts - Learn web development | MDN In this article, we'll run through a number of important concepts relating to asynchronous programming, and how this looks in web browsers and JavaScript. You sho..
-
Error HandlingJavaScript 2021. 12. 11. 22:59
자바스크립트에서 에러를 다루는 방법을 정리하였습니다. We can’t always stop errors before they occur, but we can include a backup plan in our program to anticipate and respond to the errors to ensure that our program continues running. Error handling is the process of programmatically anticipating and addressing errors. Errors contain useful messages that tell us why..
-
ModulesJavaScript 2021. 12. 11. 00:20
자바스크립트의 Module에 관한 개념 및 문법을 정리하였습니다. Modules are reusable pieces of code in a file that can be exported and then imported for use in another file. This modular strategy is called separation of concerns. Note: The words “module” and “file” are often used interchangably Before we dive in, it should be noted that th..
-
ClassesJavaScript 2021. 12. 10. 11:30
JavaScript의 Class에 대한 개념 및 문법을 정리하기 위해 작성하였습니다. Classes are a tool to quickly produce similar objects and template for objects. To create a new instance of a class. It sets the property value for each instance. Example) class Dog { constructor(name) { this.name = name; this.behavior = 0; } } : By convention, we capitalize and CamelCase class names. : I..
-
React Forms카테고리 없음 2021. 12. 7. 17:40
React에서의 Form element 사용법에 대해 정리하였습니다. Think about how forms work in a typical, non-React environment. A user types some data into a form’s input fields, and the server doesn’t know about it. The server remains clueless until the user hits a “submit” button, which sends all of the form’s data over to the server simultaneously. The problem is the period of time during which a form..
-
propTypesReact 2021. 12. 7. 01:07
이 글은 React의 PropTypes라이브러리 사용에 관한 내용을 정리하기 위해 작성하였습니다. propTypes are a mechanism to ensure that components use the right type of props, and receive the right type of props. 1. prop validation : ensure that your props are doing what they're supposed to be doing. 2. documenting props : makes it easier to glance at a file and quickly understand..