본문 바로가기

Python_WEB/JavaScript

[freecodecamp]JavaScript 두 개의 소수 곱하기

반응형

JavaScript에서는 정수처럼 십진수로 계산을 수행 할 수도 있습니다.

그들의 곱을 얻기 위해 두 개의 소수를 곱해 봅시다.

 

Q>

1. product 변수가 5.0이되도록 0.0을 변경합니다.

2. product 변수 값은 5.0과 같아야합니다.

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

 

A>

var product = 2.0 * 2.5;

 

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

 

반응형