본문 바로가기

전체 글

(1836)
[freecodecamp]JavaScript 하나의 소수를 다른 소수로 나누기 이제 한 소수를 다른 소수로 나눕니다. Q> 1. quotient가 2.2가되도록 0.0을 변경합니다. 2. 변수 quotient몫은 2.2와 같아야합니다. 3. 4.4를 2로 나누려면 / 연산자를 사용해야합니다. 4. quotient 변수는 한 번만 할당되어야합니다. A> var quotient = 4.4 / 2.0; // Change this line 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..
[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. w..
[freecodecamp]JavaScript 십진수 만들기 변수에 십진수도 저장할 수 있습니다. 10 진수는 부동 소수점 숫자 또는 부동 소수점이라고도합니다. 모든 실수를 부동 소수점으로 정확하게 표현할 수있는 것은 아닙니다. 이로 인해 반올림 오류가 발생할 수 있습니다. https://en.wikipedia.org/wiki/Floating-point_arithmetic#Accuracy_problems Floating-point arithmetic - Wikipedia From Wikipedia, the free encyclopedia Jump to navigation Jump to search Computer format for representing real numbers This article is about the method of representing..
[freecodecamp]JavaScript 숫자 줄이기 - 연산자를 사용하여 변수를 1 씩 쉽게 줄일 수 있습니다. i--; 다음과 같습니다. i = i - 1; 전체 라인은 i--;가되어 등호가 필요하지 않습니다. Q> 1. myVar에서-연산자를 사용하도록 코드를 변경합니다. 2. myVar는 10이어야합니다. 3. myVar = myVar-1; 변경해야합니다. 4. myVar에서-연산자를 사용해야합니다. 5. 지정된 주석 위의 코드를 변경해서는 안됩니다. A> var myVar = 11; // Only change code below this line myVar--; https://www.freecodecamp.org/ freeCodeCamp.org Learn to code. Build projects. Earn certifications.Since 2..
[freecodecamp]JavaScript 숫자 늘리기 ++ 연산자를 사용하여 쉽게 증가하거나 변수에 추가 할 수 있습니다. i ++; 다음과 같습니다. i = i + 1; 전체 행이 i ++;가되어 등호가 필요하지 않습니다. Q> 1. myVar에서 ++ 연산자를 사용하도록 코드를 변경하십시오. 2. myVar는 88이어야합니다. 3. 할당 연산자를 사용하면 안됩니다. 4. ++ 연산자를 사용해야합니다. 5. 지정된 주석 위의 코드를 변경해서는 안됩니다. A> var myVar = 87; // Only change code below this line myVar++; https://www.freecodecamp.org/ freeCodeCamp.org Learn to code. Build projects. Earn certifications.Since 201..
[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 M..
[freecodecamp]JavaScript 두 숫자 곱하기 한 숫자에 다른 숫자를 곱할 수도 있습니다. JavaScript는 두 숫자의 곱셈을 위해 * 기호를 사용합니다. 예> myVar = 13 * 13; // assigned 169 Q> 1. product 변수가 80이되도록 0을 변경합니다. 2. product 변수가 80과 같아야합니다. 3. * 연산자를 사용해야합니다. A> var product = 8 * 10; 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..
[freecodecamp]JavaScript 다른 숫자에서 하나의 숫자 빼기 한 숫자에서 다른 숫자를 뺄 수도 있습니다. JavaScript는 빼기를 위해 - 기호를 사용합니다. 예> myVar = 12 - 6; // assigned 6 Q> 1. difference 변수가 12가되도록 0을 변경합니다. 2. difference 변수는 12와 같아야합니다. 3. 45에서 하나의 숫자만 빼야합니다. A> var difference = 45 - 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, A..