How to Get the Value Typed in an Input Element
Using TypeScript to Retrieve Values from Input Fields
Aug 12, 20241 min read17
Search for a command to run...
Articles tagged with #javascript
Using TypeScript to Retrieve Values from Input Fields
Exploring the Power of findIndex
![[Javascript] findIndex](https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/YJxAy2p_ZJ4/upload/1a0daf339df244ae0cd5af1c9d58b412.jpeg)
Monday morning, I received a request from a customer to show the sales price with the first decimal place in the Enterprise Programme. I've googled and found one easy and simple method! toFixed(number) let num = 10.12345 num.toFixed(1) //result = 1...
![[JavaScript] Decimal Numbering Method : toFixed()](https://cdn.hashnode.com/res/hashnode/image/stock/unsplash/SSREiOm8tMs/upload/691818e7fcfba9d0040faa53f59238a3.jpeg)
문제 설명 정수 배열 num_list와 정수 n이 매개변수로 주어집니다. num_list를 다음 설명과 같이 2차원 배열로 바꿔 return하도록 solution 함수를 완성해주세요. num_list가 [1, 2, 3, 4, 5, 6, 7, 8] 로 길이가 8이고 n이 2이므로 num_list를 2 * 4 배열로 다음과 같이 변경합니다. 2차원으로 바꿀 때에는 num_list의 원소들을 앞에서부터 n개씩 나눠 2차원 배열로 변경합니다. ...
![[JavaScript] 2차원으로 만들기 (Make it 2-dementions)](https://cdn.hashnode.com/res/hashnode/image/upload/v1670814910766/yu7XbHRDB.jpeg)
new Set()
![[JavaScript] 중복된 문자 제거 (Remove duplicate characters)](https://cdn.hashnode.com/res/hashnode/image/unsplash/fPxOowbR6ls/upload/v1669595393420/2y-tpdTIU.jpeg)
정규표현식
![[JavaScript] RegExp](https://cdn.hashnode.com/res/hashnode/image/unsplash/Ss3U6bEtKww/upload/v1667959507849/5AMGddmh7.jpeg)