본문 바로가기

Python_WEB/JavaScript

[freecodecamp]JavaScript 한 숫자를 다른 숫자로 나누기

반응형

하나의 숫자를 다른 숫자로 나눌 수도 있습니다.

JavaScript는 나누기에 / 기호를 사용합니다.

 

예>

myVar = 16 / 2; // assigned 8

 

Q>

1. 변수 quotient가 2가되도록 0을 변경합니다.

2. 변수 quotient은 2와 같아야합니다.

3. / 연산자를 사용해야합니다.

 

A>

var quotient = 66 / 33;

 

 

https://www.freecodecamp.org/

 

freeCodeCamp.org

Learn to code. Build projects. Earn certifications.Since 2015, 40,000 graduates have gotten jobs at tech companies including Google, Apple, Amazon, and Microsoft.

www.freecodecamp.org

 

반응형