You Can't Code Under Pressure #1

Lee·2022년 6월 30일

Algorithm

목록 보기
33/92
post-thumbnail

❓ You Can't Code Under Pressure #1

Q. Code as fast as you can! You need to double the integer and return it.

✔ Solution

function doubleInteger(i) {
  // i will be an integer. Double it and return it.
  return parseInt(i*2);
}
profile
Lee

0개의 댓글