← 输入框
|
github.com
|
刷新
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
daheejo
algorithm-js
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
algorithm-js
/
basicAlgorithm
/
splitmap.js
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
15 lines (12 loc) · 773 Bytes
main
Breadcrumbs
algorithm-js
/
basicAlgorithm
/
splitmap.js
Copy path
Top
File metadata and controls
Code
Blame
15 lines (12 loc) · 773 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 깡총 토끼는 하루에 용돈 500원을 받습니다.
// 하지만 숙제를 안 하고 놀러 다닌 토끼는 용돈을 받지 못하게 되었습니다.
// money 문자열에서 "500원"을 기준으로 문자열을 나누어 리스트로 반환해봅시다.
// 지시사항
// money 문자열에서 "500원"을 기준으로 나누어 배열 형태로 저장하세요.
// 저장한 배열을 출력하세요.
// money 문자열입니다.
var
money
=
'500원, 깡총 토끼는 하루 용돈으로 500원. 단돈 500원을 받는다. 부모님이 주시는 500원. 하지만 잘못한 것이 있으면 500원을 받지 못한다.'
// 지시사항을 참고하여 코드를 작성하세요.
arr
=
[
]
money
.
split
(
'500원'
)
.
map
(
(
el
)
=>
arr
.
push
(
el
)
)
;
console
.
log
(
arr
)
You can’t perform that action at this time.