[Codestudy]Javascript_Return keyword 7/13 번역

/* 좀더 매끄러운 번역을 위한 조언을 기다립니다. 댓글로 남겨주시면 고맙겠습니다.

Return keyword
반환 키워드

Nice job! Now, when we call a function, we don't always want to just print stuff. Sometimes, we just want it to return a value. We can then use that value (ie. the output from the function) in other code. Let's learn about the return keyword, then we'll see how to use functions with an if / else statement in the next exercise!
좋아! 함수를 선언했을 때, 우리가 항상 그냥 출력되길 바라지는 않는다.때때로 우린 단지 값이 반환하길 바란다. 우리는 그러면 다른 코드의 값을 사용할 수 있다. (예를 들어,  함수의 출력) 키워드 반환에 대해서 배워보자. 그러면 다음 연습에서 우리는 if/else 구문 함수 사용 방법을 볼 수 있다.

The return keyword simply gives the  programmer back the value that comes out of the function. So the function runs, and when the return keyword is used, the function will immediately stop running and return the value.
반환키워드는 간편하게 함수에서 나오는 값을 프로그래머에게 돌려주는 것을 제공한다. 함수가 실행되고 키워드 반환이 사용되는 경우 함수는 즉시 실행을 중지하고 값을 반환한다.

Instructions
지침

In our example we have a function called timesTwo() that takes in a number and returns the number multiplied by two.
우리의 예에서 우리는 두 가지를 곱한 수를 다수 받아 반환 timesTwo (라는 기능)을 가지고있다.

01    On line 7, after the equals sign, call the function timesTwo with any parameter you want
01   7행 등호 표시 이후, 여러분이 원하는 매개변수와 함께 timesTwo 함수 호출 하세요.

02    Line 8 prints out newNumber. Notice how the value we return from timesTwo() is automatically assigned into newNumber.
8행 newNumber 출력합니다. 우리가 timesTwo ()에서 반환 값이 자동으로 newNumber에 할당하는 방법을 알 수 있습니다.

Hint
힌트

To call the function, we just use the name of the function. We then put in a value for the number parameter. eg. timesTwo(8);
함수를 호출하기 위해, 우린 단지 함수 이름을 사용합니다. 그런다음 숫자 매개변수 의 값에 넣습니다. 예를들어 timesTwo(8);


// Parameter is a number, and we do math with that parameter
var timesTwo = function(number) {
    return number * 2;
};

// Call timesTwo here!
var newNumber = timesTwo (8);
console.log(newNumber);

Posted by 뭔가느낌이
,