많이 사용되는 수학 객체 모음
Math.max(2,1,6) : 최대값 구하기
Math.min(2,1,6) : 최소값 구하기
Math.random() : 0~1 랜덤 수 만들기
Math.round(2.12) : 반올림하기
Math.ceil(2.12) : 올림하기
Math.floor(2.12) : 버림하기
Javascript 자주 사용하는 내장 함수 모음
String(a) : a를 문자열(String)으로 변환한다.
Number('1') : 1를 숫자(Number)로 변환한다.
padStart(6, '0') : 추후,, 확인 후 기입
setTimeout(기능, 초) : 시간 지연 함수
setInterval(기능, 초) : 시간 반복 함수
관련 참고 페이지
MDN Web Docs : https://developer.mozilla.org/ko/
MDN Web Docs
The MDN Web Docs site provides information about Open Web technologies including HTML, CSS, and APIs for both Web sites and progressive web apps.
developer.mozilla.org
W3Schools : https://www.w3schools.com/
W3Schools Free Online Web Tutorials
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
www.w3schools.com
'Javascript' 카테고리의 다른 글
[Javascript] 자주 이용하는 내장 함수들 (0) | 2021.12.30 |
---|---|
[Javascript] 함수 작성 방법 세가지 | 선언식, 표현식, 화살표 함수 (0) | 2021.12.30 |
[Javascript] 반복문 (0) | 2021.12.29 |
[Javascript] Google JavaScript Style Guide (0) | 2021.11.19 |
[Javascript] 기본 개념, 데이터 타입, 연산자 (0) | 2021.11.19 |