[Daily Post]는 매일매일 탐구한 내용을 간략하게 기록하는 포스트입니다.
따라서 정리되지 않은 내용과 추측을 포함하고 있을 수 있습니다.
더 체계적인 형식을 갖춘 글은 해당 카테고리의 포스트를 확인해주세요 :)

My Study

JS input type

  • button, checkbox, color, date, datetime-local, email, file, hidden, image, month, number, password, radio, range, reset, search, submit, tel, text, time, url, week
    • radio: 는 점(원)모양 버튼. default를 따르는 경우 2번 이상 클릭해도 원상복구 되지 않는다
  • event.preventDefault()의 뜻과 그 기능
    • preventDefault: default action that belongs to the event will not occur, if it is cancelable

Number converter 개요

I/O

  • Input

    1. fromNumber: 변환하려고 하는 숫자
    1. fromArithmetic: fromNumber의 진법
    • drop box로 입력
    1. toArithmetic: 변환 결과인 toNumber의 진법
    • drop box로 입력
    1. Convert: 1~3에 따른 변환을 시작
    • button
  • Output

    1. toNumber: 변환된 숫자
    2. (Optional) Calculation Steps: 변환 과정을 반환, 애니메이션으로 만들 수 있으면 차별화가 될 것 같다
  • fromNumber, fromArithmetic, toArithmetic이 주어졌을 때, fromNumber를 fromArithmetic을 이용해 십진수로 변환 후, toArithmetic을 이용해 toNumber로 전환
  • 테스트 케이스
    • fromNumber가 fromArithmetic에 알맞는 형태가 아닌 경우
      • e.g., fromArithmetic은 binary이나, fromNumber가 13과 같은 형태로 주어진 경우
      • 검증 방법: fromNumber의 각 자리를 fromArithmetic으로 나눴을 때, 몫이 1 미만이어야 한다.