---
title: "Discussion on \"프로그래머스 - 이상한 문자 만들기\" | Hashnode"
description: "Discussion on \"프로그래머스 - 이상한 문자 만들기\". 문제\n\n\n간단하게 말하자면, 공백포함 홀수는 대문자, 짝수는 소문자로 만들어야하는 문제..\n\n처음에 if를 써야되나 이리저리해봤는데 안되더라 ㅠ\n아래와 같이 map안에 map을 쓰면서 해야되던데.. 보고나면 이해는 된다. 그정도가 어디야\n답\nfunction solution(s) {     // \"try hello world\"\n    return s.split(' ')    // [\"try\", \"hello\", \"world\"]\n    .map(wo..."
url: "https://hashnode.com/posts/7zse66gc6re4656y66i47iqkic0g7j207iob7zwciousuoyekcdrp4zrk6tqula/62f35497408d676b1b58c06b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [프로그래머스 - 이상한 문자 만들기](https://hodlbaek.hashnode.dev/7zse66gc6re4656y66i47iqkic0g7j207iob7zwciousuoyekcdrp4zrk6tqula?utm_source=hashnode&utm_medium=feed)

문제 간단하게 말하자면, 공백포함 홀수는 대문자, 짝수는 소문자로 만들어야하는 문제.. 처음에 if를 써야되나 이리저리해봤는데 안되더라 ㅠ 아래와 같이 map안에 map을 쓰면서 해야되던데.. 보고나면 이해는 된다. 그정도가 어디야 답 function solution(s) { // "try hello world" return s.split(' ') // \["try", "hello", "world"\] .map(wo...

Aug 10, 2022 · 1 min read · hodlbaek.hashnode.dev  
Read the article

-   [#algorithms](https://hashnode.com/tag/algorithms)

## Written by

[Seungheon Baek](https://hashnode.com/@HODLBAEK)

@HODLBAEK · South Korea

  
[View profile](https://hashnode.com/@HODLBAEK)

Front-end Developer

Github: https://github.com/HODLBAEK &lt;Software Engineer&gt; I'm a self-taught Frontend Developer passionate about web development. I use HTML, CSS, Sass, Javascript, React. As an ex-banker, I also am very passionate about #BTC and what it could mean to humanity and money as we know it.

## Responses

Comments are turned off for this post.
