전체 글33 [JavaScript] 함수 파라미터 사용 예제 및 실습 🌳 파라미터 사용 예제 Alert 박스 닫기 버튼 🌳 파라미터 사용 실습 Alert box X 버튼1 버튼2 ✔ CSS 파일은 아래 링크에 있음 https://h-developer.tistory.com/25https://h-developer.tistory.com/25 2021. 8. 6. [JavaScript] function 함수 실습 🌳 html Alert 박스 닫기 버튼 🌳 css .alert-box { background: rgb(130, 130, 224); color: rgb(0, 0, 0); padding: 20px; border-radius: 5px; display: none; } 2021. 8. 6. [JavaScript] selector 셀렉터 실습 안녕하세요 올 때 메로나 2021. 8. 6. [JavaScript] 클래스, 상속, 다형성 'use strict'; // Object-oriented programming // class: template // object: instance of a class // JavaScript classes // - introduces in ES6 // - syntactical sugar over prototype-based inheritance // 1. Class declarations class Person { // constructor constructor(name, age) { // fields this.name = name; this.age = age; } // methods speak() { console.log(`${this.name}: hello!`); } } // object 생성 c.. 2021. 8. 6. 이전 1 2 3 4 5 6 ··· 9 다음