๐Ÿค ์€์ง€log ๐Ÿค

[ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค:Javascript] ๋ชซ ๊ตฌํ•˜๊ธฐ ๋ณธ๋ฌธ

๐ŸŒˆ ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค

[ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค:Javascript] ๋ชซ ๊ตฌํ•˜๊ธฐ

Eun_zii 2022. 11. 15. 10:41

ํ”„๋กœ๊ทธ๋ž˜๋จธ์Šค Lv.0

- ๋ชซ ๊ตฌํ•˜๊ธฐ

๐Ÿ’š ๋ฌธ์ œ์„ค๋ช…

  • ์ •์ˆ˜ num1, num2๊ฐ€ ๋งค๊ฐœ๋ณ€์ˆ˜๋กœ ์ฃผ์–ด์งˆ ๋•Œ, num1์„ num2๋กœ ๋‚˜๋ˆˆ ๋ชซ์„ return ํ•˜๋„๋ก solution ํ•จ์ˆ˜๋ฅผ ์™„์„ฑํ•ด์ฃผ์„ธ์š”.

 

๐Ÿ’š ์ œํ•œ์กฐ๊ฑด

  • 0 < num1 ≤ 100
  • 0 < num2 ≤ 100



๐Ÿ’š ๋ฌธ์ œ

function solution(num1, num2) {
    var answer = 0;
    return answer;
}

 

๐Ÿ’š ํ’€์ด

function solution(num1, num2){
    const x = (num1 / num2) << 0
    return (x);
}

 

 

 

728x90