https://www.codewars.com/kata/51f2b4448cadf20ed0000386
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:
Complete the function/method so that it returns the url with anything after the anchor (#) removed.
Examples
"www.codewars.com#about" --> "www.codewars.com"
"www.codewars.com?page=1" -->"www.codewars.com?page=1"
코드
function removeUrlAnchor(url){
return url.split('#')[0];
}
'알고리즘 > Codewars' 카테고리의 다른 글
[Codewars] Sum of the first nth term of Series (7 kyu) / JavaScript (0) | 2023.01.31 |
---|---|
[Codewars] Return to Sanity (8 kyu) / JavaScript (0) | 2023.01.30 |
[Codewars] Jenny's secret message (8 kyu) / JavaScript (0) | 2023.01.28 |
[Codewars] String cleaning (8 kyu) / JavaScript (0) | 2023.01.27 |
[Codewars] Will you make it? (8 kyu) / JavaScript (0) | 2023.01.26 |
댓글