Number.prototype

Numberオブジェクトにプロトタイプを追加します。

構文

Number.prototype

例文

<html>
 <head>
  <title>Number.prototype</title>
</head>
 <body>
  <script type="text/javascript"><!--
  n = new Number(2.15);
  Number.prototype.birthday = "My Brithday";
  document.write(n.birthday);
  // --></script>
 </body>
</html>

関連記事

スポンサーリンク

= 演算子

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る