GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — JavaScript_docs/02.operators/4.assignment.js at main · dev-language/JavaScript_docs Expand file tree/ Copy path4.assignment.jsMore file actions 31 lines (23 loc) · 471 Bytes / Copy path4.assignment.jsFile metadata and controls31 lines (23 loc) · 471 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 // 할당연산자 (Assignment operator) // 하나의 equal sign(=) 만 사용하면 할당연산자를 사용할 수 있다. let a = 1; a = a + 2; console.log(a); //3 // 산술연산자 축약 버전 // += a += 3; console.log(a); // 3+3 = 6 // -= a -= 3; console.log(a); // 6-3 = 3 // *= a *= 3; console.log(a); // 3*3 = 9 // /= a /= 2; console.log(a); // 9/2 = 4.5 a **= 2; console.log(a); // 4.5 * 4.5 = 20.25 // *= a %= 2; console.log(a); // 20.25 % 2 = 0.25 |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |