@GaramYoon
Front end Beginner
Nothing here yet.
Nothing here yet.
Jul 15, 2024 · 1 min read · const number = Number(prompt('How many people?')); if(number){ } When the user clicks "Cancel" in prompt(), it returns null. Since Number(null) results in 0, number is set to 0. This behaviour can be observed directly in the console. Before understa...
Join discussionJul 15, 2024 · 1 min read · <Error code> const onClickButton = () => { if(!word || (newWord.length === 3 || word[word.length - 1] === newWord[0])){ // ...code } }; In this function, the first condition checks for newWord.length === 3. However, even if newWo...
Join discussionJul 15, 2024 · 3 min read · <작성 코드> <html lang="ko"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>쿵쿵따 게임</title> </head> <body> <div>쿵쿵따 게임</div> <div><span id="order">1</span>번째 참가자</div> <d...
Join discussion