목록JavaScript (59)
진스
1. String concatenation(문자열 연결) console.log('my' + ' cat'); console.log('1' + 2); console.log(`string literals: ''''' 1 + 2 = ${1 + 2}`); console.log("ellie's \n\tbook"); 2. Numeric(숫자) operators console.log(1 + 1); console.log(1 - 1); console.log(1 / 1); console.log(1 * 1); console.log(1 % 1); // 나머지 console.log(1 ** 1); // 제곱 3. Increment(증가), decrement(감소) operators // ++ / -- let counter = 2..
1. Variable rw(read/write) // added in ES5 // use this for Vanilla Javascript. 'use strict'; // let (added in ES6) let name = `ellie`; console.log(name); // > ellie name = `hello`; console.log(name); // > hello 2. Block scope // let (added in ES6) let globalName = `global name`; { let name = `ellie`; console.log(name); // > ellie name = `hello`; console.log(name); // > hello console.log(globalNa..