TIL 12.15 - Code Camp 4일차

박선우·2022년 12월 15일
0

code_camp

목록 보기
4/31
post-thumbnail

4일차 code camp

  1. Javascript -> 함수 , 내장함수

1-1 함수

1-2 내장함수


// 함수 (인증번호)
const check = () => {
    const number = String(Math.floor(Math.random() * 1000000)).padStart(6, '0');
    document.getElementById('number').innerText = number;
    document.getElementById('number').style.color = '#' + number;
	
  	// 내장함수 (timer)
    let time = 180;

    setInterval(function () {
        if (time >= 0) {
            const min = Math.floor(time / 60);
            const sec = String(time % 60).padStart(2, '0');
            document.getElementById('timer').innerText = min + ':' + sec;
            time = time - 1;
        } else {
            document.getElementById('finish').disabled = true;
        }
    }, 1000);
};


Javascript

  • 함수, 내장함수(setime(),setInterval())

2.과제

  • 싸이월드 4일차 과제 = html, CSS
  • 추억의 BGM 만들기였다.
  • table 태그를 사용해 인기순위표를 만들어 보았다.

  1. 오늘 느낀점
  • table 태그를 처음 접해봐서 그런지 쓰는방법을 익히는데 오래 걸린것 같다.
  • 역시 구글링 짱!!
  1. 오늘 한일
    4-1 프리캠프 수강
    4-2 table 태그 이용해 과제 진행
    4-3 블로그 정리
    4-4 오늘 공부 한 코드들 git 업로드
  1. 내일 할일
    5-1 프리캠프 수강
    5-2 과제 진행
    5-3 블로그 정리
    5-4 오늘 공부 한 코드들 git 업로드
profile
코린이 열심히 배우자!

0개의 댓글