Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 백준알고리즘
- disabled
- Em
- 고차함수
- 인접 형제 선택자 결합
- for..of
- 등차수열의 항 찾기
- indexOf
- 객체
- 단방향 연결리스트
- invalid assignment left-hand side
- 가상 요소 선택자
- Link
- filter()
- visibility : hidden
- 배열과 연결리스트의 차이
- innerhtml
- Sort
- classList.contains(string)
- 배열의 내림차순
- CSS
- 범용 선택자
- 양방향 연결리스트
- display : none
- 쌍방향 연결리스트
- Array.from()
- nth-child()
- 배열의 오름차순
- map()
- 일반 형제 선택자 결합
Archives
- Today
- Total
목록Math.floor() (1)
프론트엔드 센트럴파크 (☞゚ヮ゚)☞
Math.floor()
Math.floor() 함수는 주어진 숫자와 같거나 작은 정수 중에서 가장 큰 수를 반환합니다. 내림 이라고 생각하면 된다. console.log(Math.floor(2.95)); // expected output: 2 console.log(Math.floor(2.05)); // expected output: 2 console.log(Math.floor(2)); // expected output: 2 console.log(Math.floor(-5.05)); // expected output: -6 console.log(Math.floor(-5.95)); // expected output: -6 단, 음수일 경우에는 뒷자리를 버리고 -1을 더한다.
Javascript
2022. 3. 25. 17:18