https://www.codewars.com/kata/523b4ff7adca849afe000035
Codewars - Achieve mastery through coding practice and developer mentorship
A coding practice website for all programming levels – Join a community of over 3 million developers and improve your coding skills in over 55 programming languages!
www.codewars.com
DESCRIPTION:
Make a simple function called greet that returns the most-famous "hello world!".
Style Points
Sure, this is about as easy as it gets. But how clever can you be to create the most creative hello world you can think of? What is a "hello world" solution you would want to show your friends?
설명:
가장 유명한 "hello world!"를 반환하는 간단한 greet 함수를 만드세요.
스타일 포인트
확실히 이것은 쉬운 일입니다. 하지만 당신이 생각하는 가장 창의적인 hello world를 만드는데 얼마나 기발할 수 있나요? 친구들에게 보여주고 싶은 "hello world" 솔루션은 무엇인가요?
풀이
간단하게 "hello world!"만 반환하였다. 재밌는 솔루션들이 많으니 문제를 풀고 구경해보는 것도 좋을 것 같다.
코드
function greet(){
return "hello world!"
}
'알고리즘 > Codewars' 카테고리의 다른 글
[Codewars] Counting Duplicates (6 kyu) / JavaScript (0) | 2022.11.18 |
---|---|
[Codewars] Grasshopper - Basic Function Fixer (8 kyu) / JavaScript (0) | 2022.11.17 |
[Codewars] Find The Parity Outlier (6 kyu) / JavaScript (0) | 2022.11.15 |
[Codewars] Sum without highest and lowest number (8 kyu) / JavaScript (0) | 2022.11.14 |
[Codewars] Removing Elements (8 kyu) / JavaScript (0) | 2022.11.12 |
댓글