Baseline Widely available
valueOf()
ë©ìëë Number
ê°ì²´ê° ê°ì¼(wrapped) ìì ê°ì ë°íí©ëë¤.
const numObj = new Number(42);
console.log(typeof numObj);
// Expected output: "object"
const num = numObj.valueOf();
console.log(num);
// Expected output: 42
console.log(typeof num);
// Expected output: "number"
구문 ë°í ê°
Number
ê°ì²´ì ìì ê°.
valueOf()
ë©ìëë ë³´íµ JavaScriptì ìí´ ë´ë¶ì ì¼ë¡ í¸ì¶ëê³ , ì¹ ì½ëììë ëª
ìì ì¼ë¡ í¸ì¶íì§ ììµëë¤.
valueOf
ì¬ì©í기
var numObj = new Number(10);
console.log(typeof numObj); // object
var num = numObj.valueOf();
console.log(num); // 10
console.log(typeof num); // number
ëª
ì¸ ë¸ë¼ì°ì í¸íì± ê°ì´ 보기
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4