JavaScript18 JavaScript/freeCodeCamp - Full Course for Beginners 2:36:57~3:15:06 PART2: ES6 원래는 var만 썼는데, 2015년 ES6 이후로 let과 const도 쓸 수 있게 되었다. let does not let you declare a variable twice. var은 괜찮은데 let은 에러가 뜬다. let을 지우면 에러가 없어진다. "use strict" - enables strict mode which catches common coding mistakes and unsafe actions at the top of a full JavaScript file or maybe just in a function another major difference between the var and let keywords is that when you declare a varia.. 2020. 6. 16. JavaScript/freeCodeCamp - Full Course for Beginners 1:59:16~2:36:57 a JavaScript object is a way to store flexible data so you can store strings, numbers and arrays and even other objects. myMusic이라는 array 안에 object가 있다. 이것은 json과 비슷하다. maps를 get하기 띄어쓰기 있으니까 [" "] pine 코딩 챌린지 31행의 함수를 만들어보자. if we have an empty string for the value, it should just completely delete that property also if we have the property of tracks, and then we have a value instead of updating.. 2020. 6. 15. JavaScript/freeCodeCamp - Full Course for Beginners 59:30~1:59:16 youtu.be/PkZNo7MFNFg?t=3570 함수 안에서 declare된 변수와 parameter들은 local sope를 가진다. = 그 함수 안에서만 보인다. 똑같은 이름의 local 변수와 global 변수가 존재할 수 있다. 이런 경우에 local 변수가 우선한다. 함수는 return statement를 가질 수 있지만, 항상 그래야 하는 것은 아니다. 변수 sum은 함수 전에 define되었으므로 global 변수이다. sum은 3이 되지만, return이 없으므로 3을 출력하지는 않는다. = return value is undefined. return된 value를 variable로 assgin하기 computer science에서 queue란: an abstract data struct.. 2020. 6. 15. JavaScript/freeCodeCamp - Full Course for Beginners 00:00~59:30 youtu.be/PkZNo7MFNFg 인터넷 JS playground - freeCodeCamp 사이트, Codepen.io, Scrimba.com 변수의 선언 방법 1. var be able to be used throughout your whole program. 변수의 선언 방법 2. let only be used within the scope of where you declare that. 변수의 선언 방법 3. const 절대 변할 수 없다. 변수를 declare(선언)하는 것과 assign(할당)하는 것은 차이가 있다. 첫째줄은 declare하는 방법이다. 둘째줄은 declare과 assign을 동시에 하는 방법이다. Initializing a variable to an initial valu.. 2020. 6. 14. JavaScript/엘리 - 3. 데이터타입, let vs var, hoisting 프로그래밍 언어에서 가장 중요한 것 - 입력, 연산, 출력 사용자에게 콘솔이나 UI에서 입력받은 데이터를 잘 처리하고 연산해서 알맞게 다시 사용자에게 출력해주는 것 & 그 데이터를 서버로 전송해서 다시 받아오는 것 이런 연산을 하면서 CPU를 효율적으로 사용할 수 있도록 CPU에 최적화된 로직을 작성하는 것도 중요하고 메모리를 최소화해서 사용하는 것도 중요 variable.js 'use strict'; index.html 변수: 변경될 수 있는 값 변수의 선언 - let 이용 (ES6에 추가된 언어) ※ ES6 가르쳐줄게 = JavaScript 가르쳐줄게 'use strict'; let name = 'ellie'; console.log(name); name = 'hello'; console... 2020. 6. 14. 이전 1 2 3 4 다음