Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Number.prototype.valueOf()

概要

Number オブジェクトのプリミティブ値を返します。

構文

number.valueOf()

引数

無し

説明

Number オブジェクトの valueOf メソッドは、数値データ型としての、Number オブジェクトのプリミティブ値を返します。

このメソッドは、通常、JavaScript によって内部的に呼ばれ、コード中で明示的に呼ばれることはありません。

var x = new Number();

alert( x.valueOf() );     // "0"

関連情報

ドキュメントのタグと貢献者

 このページの貢献者: teoli, ethertank, Potappo
 最終更新者: teoli,