반응형

1. JS Number.prototype.toLocalestring()

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toLocaleString

 

Number.prototype.toLocaleString() - JavaScript | MDN

The toLocaleString() method of Number values returns a string with a language-sensitive representation of this number. In implementations with Intl.NumberFormat API support, this method simply calls Intl.NumberFormat.

developer.mozilla.org

 

2. JS textContent, value, innerText의 차이점

https://velog.io/@uni/JavaScripttextContent-value-innertext-%EC%B0%A8%EC%9D%B4%EC%A0%90

 

[JavaScript]textContent, value, innertext 차이점은?

끝맛잇기 게임을 만들다가 textContent, value, innertext를 사용하게 되면서 이 세개의 차이점은 무엇일까라는 의문이 들었다. text 값을 가져와서 변경 할 수 있다.input과 같은 form 요소의 값을 가져오고

velog.io

 

반응형

'Daily log' 카테고리의 다른 글

241002  (0) 2024.10.02
241001  (0) 2024.10.01
240927  (0) 2024.09.27
240926  (0) 2024.09.26
240925  (1) 2024.09.25

+ Recent posts