Notice
Recent Posts
Tags
- 컨텐츠 중간 위치
- css3 selector
- ajax
- jQuery
- 관계형 데이터 베이스
- javascript 이론
- 배열 메소드
- Git
- 마임타입
- array method
- findindex
- CSS
- mysql
- 겸손한 자바스크립트
- 미들웨어
- unobtrusive javascript
- javascript
- express 서버
- ecmascript method
- nodejs
- database 개념
- dom event
- css3 셀렉터
- body-parser
- IIS 서버
- requirejs
- ecma6
- displaytable
- ecma script
- supervisor
Link
목록ecma6 (1)
Martin`s Work
[ECMAScript] Var, Let, Const 차이점
var 변수 선언과 Let, Const 변수 선언의 차이점 1. 변수 값의 변화기존의 자바스크립트에서는 var를 이용하여 변수를 선언하였다. var로 선언한 변수의 경우 할당되는 값이 유동적으로 변경이 가능하였다. 1234var hello="hello";console.log(hello); //result : hellovar hello="hi";console.log(hello); //result :hics 예를 들어 위의 경우처럼 최초 hello 변수를 선언할 때, 값을 "hello"로 할당을 해준 후, 밑에서 해당 변수의 값을 "hi"로 바꾼다고 하여도, 에러 없이 값이 바뀐다. 하지만 let과 const로 변수를 선언한 경우는 값을 바꿀 수가 없다. 1234let hello="hello";console..
ECMAScript
2017. 6. 17. 13:12