A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/Number/valueOf below:

valueOf ยท WebPlatform Docs

valueOf Summary

Returns the primitive value of the specified number.

Syntax
number.valueOf()
Return Value

Returns the number.

Examples

In the following example, the instantiated number object is the same as the return value of this method.

var num = 1234;
 var s = num.valueOf();

 if (num === s)
 document.write("same");
 else
 document.write("different");

 // Output:
 // same
Attributions

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