JavascriptvalueOf usage _ basic knowledge

Source: Internet
Author: User
Returns the original value of the specified object. Object. valueOf ()
The object parameter is an inherent JScript object.
Description
The valueOf method definition of each inherent object in JScript is different.
Object Return Value
Array Elements of the array are converted into strings separated by commas (,) and connected together. Its operation andArray. toStringAndArray. joinThe method is the same.
Boolean Boolean value.
Date The storage time is the number of milliseconds from midnight, January 1, January 1, 1970 in UTC.
Function Function itself.
Number Numeric value.
Object Object. This is the default situation.
String String value.
Math and Error objects do not have the valueOf method.

Applicable:
Array Object | Boolean Object | Date Object | Function Object | Number Object | String Object
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.