드림코딩 엘리3 기본 타입 마스터하기 보호되어 있는 글 입니다. 2021. 2. 14. 9. 유용한 10가지 배열 함수들 // Q1. make a string out of an array { const fruits = ['apple', 'banana', 'orange']; const result = fruits.join(); //apple, banana, orange console.log(result); const results = fruits.join('|'); //apple|banana|orange console.log(results); /** * Adds all the elements of an array separated by the specified separator string. * @param separator A string used to separate one element of an array from t.. 2021. 2. 14. 3. 데이터 타입, data types, let vs var, hoisting 💡 입력 연산 출력이 주요 기능이다!! → 전송도 포함일 수 있다! CPU에 최적화된 연산, 메모리에 최적화된 연산이 중요하다!! // 1. Use strict // added in ES 5 // use this fro Vanila JavaScript 'use strict'; // 2. Variable // let (added in ES6) let name = 'ellie'; console.log(name); name = 'hello'; console.log(name); //2-1. Block { let name = 'ellie'; console.log(name); name = 'hello'; console.log(name); } //지역 변수로 쓰게 되면 출력이 되지 않는 문제점이 있다!! consol.. 2021. 2. 13. 이전 1 다음 반응형