본문 바로가기

JAVASCRIPT5

프론트엔드 개발환경 - Node.js가 필요한 이유 1. Introduction 현대 프론트엔드 개발환경을 설정하다보면 Node.js를 필수적으로 접하게 됩니다. Node.js를 js로 빌드하는 백엔드 프레임워크로 알고계신 분이라면, 왜 프론트엔드 개발환경에 백엔드 프레임워크가 필요한지 의아하실 수도 있을 것 같네요. 오늘은 Node.js, npm을 기반으로한 프론트엔드 개발환경에 대해서 간략하게 알아보고자 합니다. 2. Definition - Node.js란? 공식 사이트(https://nodejs.org/ko)에서는 Node.js에 대하여 간결하게 정의하고 있습니다. Node.js®는 Chrome V8 JavaScript 엔진으로 빌드된 JavaScript 런타임입니다. js는 '스크립트' 언어이고 이를 해석해서 실행시켜줄 환경이 별도로 필요합니다. .. 2023. 6. 24.
Constructor and Object model In this post, we will figure out briefly what happens internally when we call a constructor. It will be needed necessary to understand JS object model and 'this' keyword later. 1. Review Definition of the constructor : - It is a function - It creates an instance and returns it Yes, the constructor is just a function. If we do not use 'new' keyword, it is just executed and finished without return.. 2019. 9. 4.
Prototype Javascript is a 'prototype-based' language. As I referred to the previous post, it is very important to understand the concept of a prototype. 1. Review - All things in JS(except primitive type) are objects - A function is one of the objects - All Objects are created by constructor(instance) - When you define the function, JS delegates a constructor to function and create a prototype Let's start.. 2019. 9. 3.
Function 1. What is a Function? Let's make it simple. It is just one of an object. A function consists of ‘name’, ‘argument’ and ‘expression’. Normally we define a function using a literal expression. function functionName(argument) { // express what this funtion does } But we can also use a constructor. Remind this: - An object has Property and method - A function is an object - All objects are created .. 2019. 9. 2.