본문 바로가기

JS

(17)
함수 - return, 계산기 function sayHello(name, age){ return `Hello ${name} you are ${age} years old.`; } const greetNicolas = sayHello("Nicolas", 15) console.log(greetNicolas)​ function sayHello(name, age){ console.log(`Hello ${name} you are ${age} years old.`); } sayHello("Yunmi", 15); console.log("Hi") "hello", name, "you are" "hello"+name+"you are" 대신 `hello ${name}` function sayHello(name, age){ console.log(`Hello..
객체 - Property and Method Object Create Iterate Property&Method Property: 객체에 포함된 변수. 이 코드에서는 programmer, designer, bookkeeper, data scientist가 해당 Method: 객체에 포함된 함수. 이 코드에서는 ShowAll showAll 함수도 coworkers에 포함되기 때문에 가장 아랫줄에 나타남. 선생님이 나중에 if문으로 없앨 수도 있다고 하길래 혼자서 코드를 써봤고 Property&Method 원했던 대로 함수 없이 출력!
객체 - 반복문과 객체 Object Create Iterate 파이썬 반복문과 비슷해서 다행히 이해하기 어렵지 않았다.
객체 - 쓰기와 읽기 Object Create
배열과 반복문 활용 WEB HTML CSS JavaScript JavaScript JavaScript (/ˈdʒɑːvəˌskrɪpt/[6]), often abbreviated as JS, is a high-level, dynamic, weakly typed, prototype-based, multi-paradigm, and interpreted programming language. Alongside HTML and CSS, JavaScript is one of the three core technologies of World Wide Web content production. It is used to make webpages interactive and pr
배열과 반복문 JS에서 배열 선언 .length while loop Loop & Array Coworkers
조건문의 활용 + refactoring WEB HTML CSS JavaScript JavaScript JavaScript (/ˈdʒɑːvəˌskrɪpt/[6]), often abbreviated as JS, is a high-level, dynamic, weakly typed, prototype-based, multi-paradigm, and interpreted programming language. Alongside HTML and CSS, JavaScript is one of the three core technologies of World Wide Web content production. It is used to make webpages interactive and provide online programs, including vid..
HTML과 JavaScript의 만남 (이벤트) 사용자와 상호작용이 가능한 JS!